[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master ceb57e10d6 3/4: Add lazy highlight to 'isearch-edit-string'
From: |
Juri Linkov |
Subject: |
master ceb57e10d6 3/4: Add lazy highlight to 'isearch-edit-string' |
Date: |
Sun, 20 Mar 2022 16:31:22 -0400 (EDT) |
branch: master
commit ceb57e10d605f4ec4d61182f58f7a6ef633a592a
Author: Augusto Stoffel <arstoffel@gmail.com>
Commit: Juri Linkov <juri@linkov.net>
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 1ee5f2e9a8..1a83586ef8 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)