From: Miles Bader <snogglethorpe@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: query-replace on region highlights too much
Date: Sun, 13 Feb 2005 09:50:00 +0900 [thread overview]
Message-ID: <fc339e4a050212165047524fe3@mail.gmail.com> (raw)
In-Reply-To: <874qghv4q7.fsf@emptydomain.de>
On Sat, 12 Feb 2005 22:38:24 +0100, Kai Großjohann <kai@emptydomain.de> wrote:
> I mark a region, I invoke M-%. This will perform the query-replace on
> the marked region only. (I forget whether that's always the case, or
> whether I have turned on something to make it so. I think it works
> like this because I use transient-mark-mode.)
>
> The problem is that the highlighting of the search string is performed
> in the whole buffer, not only in the region where replacing is going
> to happen.
Yes, I find that very disturbing as well. A particularly bad case is
where you're replacing a very common string (like a small space) in a
small region, in which case the bogus highlights can completely
overwhelm the cursor display and region highlighting!
Oh, also another problem with the "query-replace highlighting": The
highlighting seems to be erased and re-done from scratch everytime you
hit "y" to replace an instance, which can be very annoying. I suppose
the intent of this is to keep any highlighting up-to-date in the face
of buffer-modification, but it could be made much smarter (e.g., only
"refresh" the buffer region actually modified by the last
replacement).
Thanks,
-Miles
--
Do not taunt Happy Fun Ball.
next prev parent reply other threads:[~2005-02-13 0:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-12 21:38 query-replace on region highlights too much Kai Großjohann
2005-02-13 0:50 ` Miles Bader [this message]
2005-02-15 6:18 ` Richard Stallman
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=fc339e4a050212165047524fe3@mail.gmail.com \
--to=snogglethorpe@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=miles@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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).