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: Eli Zaretskii
Subject: bug#59918: 29.0.60; query-replace in the minibuffer lazy-highlights original buffer
Date: Sat, 10 Dec 2022 20:36:06 +0200

> From: Juri Linkov <juri@linkov.net>
> Date: Sat, 10 Dec 2022 19:20:14 +0200
> 
> > 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.

If you know that you are in the minibuffer window, you can get that
window by calling minibuffer-window, right?





reply via email to

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