summaryrefslogtreecommitdiff
path: root/lisp/isearch.el
diff options
context:
space:
mode:
authorAugusto Stoffel <arstoffel@gmail.com>2021-02-12 19:29:54 +0100
committerJuri Linkov <juri@linkov.net>2021-02-13 20:30:25 +0200
commit6b0de9f8300022d41f3acd63ef6d9a913e983215 (patch)
tree5480e8c65d69b8c42e767a1592e48b0826145342 /lisp/isearch.el
parentf65402f851c91523ca44450c609bee07d37b9036 (diff)
downloademacs-6b0de9f8300022d41f3acd63ef6d9a913e983215.tar.gz
emacs-6b0de9f8300022d41f3acd63ef6d9a913e983215.tar.bz2
emacs-6b0de9f8300022d41f3acd63ef6d9a913e983215.zip
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
Diffstat (limited to 'lisp/isearch.el')
-rw-r--r--lisp/isearch.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/isearch.el b/lisp/isearch.el
index b58ca8a6f70..c571ea94670 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