emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 6b0de9f: Small correction to `isearch-lazy-highlight-buffer-updat


From: Juri Linkov
Subject: master 6b0de9f: Small correction to `isearch-lazy-highlight-buffer-update'
Date: Sat, 13 Feb 2021 13:31:21 -0500 (EST)

branch: master
commit 6b0de9f8300022d41f3acd63ef6d9a913e983215
Author: Augusto Stoffel <arstoffel@gmail.com>
Commit: Juri Linkov <juri@linkov.net>

    Small correction to `isearch-lazy-highlight-buffer-update'
    
    The value of point is now read after a potential change of buffer.
    * lisp/isearch.el (isearch-lazy-highlight-buffer-update): Move call
    to `point' after `select-window'.
    
    Copyright-paperwork-exempt: yes
---
 lisp/isearch.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lisp/isearch.el b/lisp/isearch.el
index b58ca8a..c571ea9 100644
--- a/lisp/isearch.el
+++ b/lisp/isearch.el
@@ -4127,13 +4127,13 @@ Attempt to do the search exactly the way the pending 
Isearch would."
   "Update highlighting of other matches in the full buffer."
   (let ((max lazy-highlight-buffer-max-at-a-time)
         (looping t)
-        nomore window-start window-end
-        (opoint (point)))
+        nomore opoint window-start window-end)
     (with-local-quit
       (save-selected-window
        (if (and (window-live-p isearch-lazy-highlight-window)
                 (not (memq (selected-window) 
isearch-lazy-highlight-window-group)))
            (select-window isearch-lazy-highlight-window))
+       (setq opoint (point))
        (setq window-start (window-group-start))
        (setq window-end (window-group-end))
        (save-excursion



reply via email to

[Prev in Thread] Current Thread [Next in Thread]