GNU bug report logs -
#13178
Query-replace fails soon after narrow-to-region
Previous Next
Reported by: Teika Kazura <teika <at> lavabit.com>
Date: Fri, 14 Dec 2012 04:06:02 UTC
Severity: normal
Done: Juri Linkov <juri <at> linkov.net>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your bug report
#13178: Query-replace fails soon after narrow-to-region
which was filed against the emacs package, has been closed.
The explanation is attached below, along with your original report.
If you require more details, please reply to 13178 <at> debbugs.gnu.org.
--
13178: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=13178
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
>>>> 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.
[Message part 3 (message/rfc822, inline)]
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)
This bug report was last modified 9 years and 194 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.