From: Chunyang Xu <mail@xuchunyang.me>
To: Ole Laursen <olau@iola.dk>
Cc: emacs-devel@gnu.org
Subject: Re: Interactive query-replace
Date: Fri, 10 Feb 2017 12:47:26 +0800 [thread overview]
Message-ID: <m2h942mz35.fsf@xuchunyang.me> (raw)
In-Reply-To: <CANb2Ov+bJx+PezmhVnkzZ7CDoOB+wgB3omHtqMmDAWXh43dboQ@mail.gmail.com>
(I replied a empty message a minute ago by accident, sorry about that)
Ole Laursen writes:
> Search and replace has three phases:
>
> - Enter search term
> - Enter replacement term
> - Confirmation
>
> Only confirmation is interactive in Emacs.
>
> The search phase could move the cursor and highlight all matches as
> you type, just like isearch. Then we can see what we're about to
> overwrite.
The search term is also interactive if you start your query-replace from
isearch via the same keys (that is M-% ('isearch-query-replace')). I use
this whenever I am not sure if my search pattern is correct.
next prev parent reply other threads:[~2017-02-10 4:47 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-09 21:27 Interactive query-replace Ole Laursen
2017-02-09 21:37 ` Kaushal Modi
2017-02-09 21:38 ` Kaushal Modi
2017-02-09 21:42 ` Clément Pit-Claudel
2017-02-09 22:27 ` Ole Laursen
2017-02-10 4:38 ` Chunyang Xu
2017-02-10 4:47 ` Chunyang Xu [this message]
2017-02-10 6:03 ` Stefan Monnier
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=m2h942mz35.fsf@xuchunyang.me \
--to=mail@xuchunyang.me \
--cc=emacs-devel@gnu.org \
--cc=olau@iola.dk \
/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).