[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: |
Augusto Stoffel |
Subject: |
bug#59918: 29.0.60; query-replace in the minibuffer lazy-highlights original buffer |
Date: |
Sun, 11 Dec 2022 12:40:00 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
On Fri, 9 Dec 2022 at 09:42, Juri Linkov wrote:
> X-Debbugs-Cc: Augusto Stoffel <arstoffel@gmail.com>
>
> 0. emacs -Q
> 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?
--8<---------------cut here---------------start------------->8---
modified lisp/isearch.el
@@ -4435,7 +4435,9 @@ minibuffer-lazy-highlight-setup
highlighting.
LAX-WHITESPACE: The value of `isearch-lax-whitespace' and
`isearch-regexp-lax-whitespace' to use for lazy highlighting."
- (if (not highlight)
+ (if (not (and highlight
+ (eq (current-buffer) (window-buffer
+ (minibuffer-selected-window)))))
#'ignore
(let ((unwind (make-symbol "minibuffer-lazy-highlight--unwind"))
(after-change (make-symbol
"minibuffer-lazy-highlight--after-change"))
--8<---------------cut here---------------end--------------->8---
- 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 <=
- 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, 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/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