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

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

[debbugs-tracker] bug#13178: closed (Query-replace fails soon after narr


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#13178: closed (Query-replace fails soon after narrow-to-region)
Date: Fri, 13 Nov 2015 23:42:02 +0000

Your message dated Sat, 14 Nov 2015 01:39:54 +0200
with message-id <address@hidden>
and subject line Re: bug#13178: Query-replace fails soon after narrow-to-region
has caused the debbugs.gnu.org bug report #13178,
regarding Query-replace fails soon after narrow-to-region
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
13178: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=13178
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: Query-replace fails soon after narrow-to-region Date: Fri, 14 Dec 2012 13:03:20 +0900 (JST)
Hi, Emacs developers.

In Emacs 24.1, query-replace soon after narrow-to-region fails. More
precisely, minibuffer says "Replaced 0 occurrences", and the
query-replace finishes even if there're matches. I don't think it's a
recent regresion.

Steps to reproduce:
0. emacs -Q
1. Open a buffer.
2. Set mark, and do narrow-to-region
3. Move to the top of the narrowed buffer.
4. Do query-replace.
5. minibuffer says "Replaced 0 occurrences", and the query-replace
   finishes. If you do query-replace again, then it starts correctly.

It seems that some extra commands between each step hinder to reproduce.
Probably you have to enable narrow-to-region beforehand, and
query-replace history is necessary, so that "M-% <enter>" can invoke
a query-replace.

In fact, it was already reported in bug #8952:
  http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8952
but as a "wishlist", mixed with several other things. So I dare to
submit a separate entry.

I've been bothered by this bug for years, but I didn't know how to
reproduce it. Thank you in advance.

Best regards,
Teika (Teika kazura)




--- End Message ---
--- Begin Message --- Subject: Re: bug#13178: Query-replace fails soon after narrow-to-region Date: Sat, 14 Nov 2015 01:39:54 +0200 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (x86_64-pc-linux-gnu)
>>>> It should obey use-empty-active-region.
>>>
>>> This patch allows query-replace commands to obey use-empty-active-region:
>>
>> Looks good to me.
>
> bug#13178 could be handled together with bug#19829 and bug#20070.

This is fixed by bug#19829.


--- End Message ---

reply via email to

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