From: Teika Kazura <teika@lavabit.com>
To: 13178@debbugs.gnu.org
Subject: bug#13178: Query-replace fails soon after narrow-to-region
Date: Fri, 14 Dec 2012 13:03:20 +0900 (JST) [thread overview]
Message-ID: <20121214.130320.1173151390202861752.teika@lavabit.com> (raw)
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)
next reply other threads:[~2012-12-14 4:03 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-14 4:03 Teika Kazura [this message]
2015-02-27 8:12 ` bug#13178: Query-replace fails soon after narrow-to-region Teika Kazura
2015-02-27 15:01 ` Drew Adams
2015-02-27 19:50 ` Artur Malabarba
2015-03-02 17:23 ` Stefan Monnier
2015-03-02 20:14 ` Juri Linkov
2015-03-02 21:51 ` Artur Malabarba
2015-03-12 19:53 ` Juri Linkov
2015-11-13 23:39 ` Juri Linkov
2015-03-03 23:31 ` Teika Kazura
2015-03-04 1:16 ` Artur Malabarba
2015-03-05 0:16 ` Teika Kazura
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20121214.130320.1173151390202861752.teika@lavabit.com \
--to=teika@lavabit.com \
--cc=13178@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.