From: Augusto Stoffel Date: Sun, 20 Mar 2022 19:49:32 +0000 (+0100) Subject: Add lazy highlight to 'isearch-edit-string' X-Git-Tag: emacs-29.0.90~1931^2~1023 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ceb57e10d605f4ec4d61182f58f7a6ef633a592a;p=emacs.git 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. --- 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)