help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Query replace question


From: Stefan Monnier
Subject: Re: Query replace question
Date: Thu, 17 Mar 2022 14:49:40 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Ergus [2022-03-17 12:19:52] wrote:
> I am wondering if there is some functionality in vanilla to enable
> dynamic match highlight during query replace or query-replace regex
> while composing the regex? Similar to isearch lazy highlight,
> regex-highlight or re-builder; but for query-replace and the rest of the
> replace family?

You can do the query&replace from Isearch:

    C-u C-s <regexp> M-C-% <replacement> RET

In my world, this is the normal way to do a "query replace".
I only invoked straight query-replace when I want to repeat a previous
replacement.


        Stefan




reply via email to

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