From ceb57e10d605f4ec4d61182f58f7a6ef633a592a Mon Sep 17 00:00:00 2001 From: Augusto Stoffel Date: Sun, 20 Mar 2022 20:49:32 +0100 Subject: [PATCH] Add lazy highlight to 'isearch-edit-string' * lisp/isearch.el (isearch-edit-string): Activate lazy highlight and lazy count, provided 'isearch-lazy-highlight' respectively 'isearch-lazy-count' are non-nil. --- lisp/isearch.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lisp/isearch.el b/lisp/isearch.el index 1ee5f2e9a82..1a83586ef8a 100644 --- a/lisp/isearch.el +++ b/lisp/isearch.el @@ -1812,6 +1812,8 @@ The following additional command keys are active while editing. (minibuffer-history-symbol) ;; Search string might have meta information on text properties. (minibuffer-allow-text-properties t)) + (when isearch-lazy-highlight + (add-hook 'minibuffer-setup-hook #'minibuffer-lazy-highlight-setup)) (setq isearch-new-string (read-from-minibuffer (isearch-message-prefix nil isearch-nonincremental) -- 2.39.2