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

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

bug#59918: 29.0.60; query-replace in the minibuffer lazy-highlights orig


From: Juri Linkov
Subject: bug#59918: 29.0.60; query-replace in the minibuffer lazy-highlights original buffer
Date: Sat, 10 Dec 2022 19:20:14 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu)

> 1. (setq enable-recursive-minibuffers t)
> 2. M-! is C-a
> 3. M-% is
>
> Matches are lazy-highlighted in the original buffer,
> but the replacement is going to be used to replace
> matches in the minibuffer.

Unfortunately, this is how minibuffer-selected-window behaves:

1. M-!
2. M-x
3. M-: (minibuffer-selected-window)

returns *scratch*, but not the minibuffer where it was invoked.

So lazy-highlighting could be disabled if (minibuffer-depth) > 1,
if we are sure that not such highlighting would be preferable.





reply via email to

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