From 0c815fa21001b4a29f124e8eda58f7889560d701 Mon Sep 17 00:00:00 2001 From: Artur Malabarba Date: Mon, 2 Nov 2015 12:09:16 +0000 Subject: [PATCH 1/3] * lisp/isearch.el: Allow lazy-highlighting of all windows (isearch-lazy-highlight): New possible value. (isearch-lazy-highlight-update): Use it. --- lisp/isearch.el | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/lisp/isearch.el b/lisp/isearch.el index b762884..6442166 100644 --- a/lisp/isearch.el +++ b/lisp/isearch.el @@ -279,8 +279,13 @@ isearch-lazy-highlight "Controls the lazy-highlighting during incremental search. When non-nil, all text in the buffer matching the current search string is highlighted lazily (see `lazy-highlight-initial-delay' -and `lazy-highlight-interval')." - :type 'boolean +and `lazy-highlight-interval'). + +When multiple windows display the current buffer, the +highlighting is displayed only on the selected window, unless +this variable is set to the symbol `all-windows'." + :type '(choice boolean + (const :tag "On, and applied to all windows" all-windows)) :group 'lazy-highlight :group 'isearch) @@ -3162,7 +3167,8 @@ isearch-lazy-highlight-update ;; but lower than isearch main overlay's 1001 (overlay-put ov 'priority 1000) (overlay-put ov 'face lazy-highlight-face) - (overlay-put ov 'window (selected-window)))) + (unless (eq isearch-lazy-highlight 'all-windows) + (overlay-put ov 'window (selected-window))))) ;; Remember the current position of point for ;; the next call of `isearch-lazy-highlight-update' ;; when `lazy-highlight-max-at-a-time' is too small. -- 2.6.2