[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: |
Mon, 12 Dec 2022 20:07:53 +0200 |
> Cc: 59918@debbugs.gnu.org
> From: Juri Linkov <juri@linkov.net>
> Date: Mon, 12 Dec 2022 19:43:25 +0200
>
> >> 1. (setq enable-recursive-minibuffers t)
> >> 1. M-! is C-a
> >> 2. M-% is
> >>
> >> Matches are lazy-highlighted in the original buffer,
> >> but the replacement is going to be used to replace
> >> matches in the minibuffer.
> >
> > I guess this happens because minibuffer-selected-window returns the
> > original buffer. I think this patch does the trick?
>
> We need to wait until Eli decides whether to install this
> to emacs-29 or master.
I admit that I don't understand the patch. minibuffer-selected-window
returns a window, not a buffer, and it returns the window that you
didn't want, AFAIU.
Or maybe I don't understand the root cause -- could one of you please
elaborate on what happens and why this is the right patch?
Also, was this code introduced in Emacs 28/29 or earlier?
Thanks.
- bug#59918: 29.0.60; query-replace in the minibuffer lazy-highlights original buffer, Juri Linkov, 2022/12/09
- bug#59918: 29.0.60; query-replace in the minibuffer lazy-highlights original buffer, Juri Linkov, 2022/12/10
- bug#59918: 29.0.60; query-replace in the minibuffer lazy-highlights original buffer, Augusto Stoffel, 2022/12/11
- bug#59918: 29.0.60; query-replace in the minibuffer lazy-highlights original buffer, Juri Linkov, 2022/12/12
- bug#59918: 29.0.60; query-replace in the minibuffer lazy-highlights original buffer,
Eli Zaretskii <=
- bug#59918: 29.0.60; query-replace in the minibuffer lazy-highlights original buffer, Augusto Stoffel, 2022/12/12
- bug#59918: 29.0.60; query-replace in the minibuffer lazy-highlights original buffer, Eli Zaretskii, 2022/12/12
- bug#59918: 29.0.60; query-replace in the minibuffer lazy-highlights original buffer, Augusto Stoffel, 2022/12/12
- bug#59918: 29.0.60; query-replace in the minibuffer lazy-highlights original buffer, Eli Zaretskii, 2022/12/13
- bug#59918: 29.0.60; query-replace in the minibuffer lazy-highlights original buffer, Juri Linkov, 2022/12/13