bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#45617: <query-replace> loses the edit region. Works in 23.3, broke i


From: Bob Floyd
Subject: bug#45617: <query-replace> loses the edit region. Works in 23.3, broke in 26.3
Date: Sat, 23 Jan 2021 10:03:56 -0800

>Do you mean that the region is deactivated after finishing query-replace?
>That's how it's supposed to work.  Please always select entire region
>before starting query-replace again.

No, I always select the region, then begin <query-replace>.

When I see the previous replacement in the command window:
   Query replace in region (default _nmRoot → _nmDolRoot):
Instead of:
   Query replace:

Then I get the bad behavior.

-----Original Message-----
From: Juri Linkov [mailto:juri@linkov.net] 
Sent: Saturday, January 23, 2021 9:21 AM
To: Bob Floyd
Cc: 'Eli Zaretskii'; 45617@debbugs.gnu.org
Subject: Re: bug#45617: <query-replace> loses the edit region. Works in 23.3, 
broke in 26.3

> Yes, I'm using the function in my test.
>
> Ah, I think I see why you do not see the issue:
>
> When I start a fresh copy of emacs and follow the steps it works correctly.
> When I repeat the steps a 2nd, 3rd ... time, then it breaks.
>
> After the 1st time <query-replace> shows this in the command window:
>   Query replace in region (default _iDfnGoverned ? _iBDHdfnGoverned):
>
>> "Notice the selection region changes to lines 1-4 and is never restored."
>> I don't see that the selection region changes to lines 1-4.  I see only
>> that the selection region is deactivated after I yank the selection
>> using middle mouse click <mouse-2>.
>
> I believe you will see the selection region change when repeating the steps.
>
> At least I hope so! If not, am I able to embed a jpg in a reply to one of
> these emails?

Do you mean that the region is deactivated after finishing query-replace?
That's how it's supposed to work.  Please always select entire region
before starting query-replace again.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]