emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] master 4fd19c2: * lisp/isearch.el (isearch-done): Reset is


From: Juri Linkov
Subject: [Emacs-diffs] master 4fd19c2: * lisp/isearch.el (isearch-done): Reset isearch-lazy-highlight-last-string
Date: Tue, 25 Dec 2018 16:54:32 -0500 (EST)

branch: master
commit 4fd19c236f5647d586280b85e9606b3e5dbdff4f
Author: Juri Linkov <address@hidden>
Commit: Juri Linkov <address@hidden>

    * lisp/isearch.el (isearch-done): Reset isearch-lazy-highlight-last-string
    
    to nil (bug#33838).
    (isearch-lazy-highlight-new-loop)
    (isearch-lazy-highlight-buffer-update): Don't set arg ELLIPSIS of
    isearch-message to t to not reset the value of isearch-error.
---
 lisp/isearch.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/lisp/isearch.el b/lisp/isearch.el
index dd0973d..d2c1c15 100644
--- a/lisp/isearch.el
+++ b/lisp/isearch.el
@@ -1357,6 +1357,7 @@ NOPUSH is t and EDIT is t."
   (setq minibuffer-message-timeout isearch-original-minibuffer-message-timeout)
   (isearch-dehighlight)
   (lazy-highlight-cleanup lazy-highlight-cleanup)
+  (setq isearch-lazy-highlight-last-string nil)
   (let ((found-start (window-group-start))
        (found-point (point)))
     (when isearch-window-configuration
@@ -3768,7 +3769,7 @@ by other Emacs features."
     (when isearch-lazy-count-current
       (setq isearch-lazy-count-current
             (gethash (point) isearch-lazy-count-hash 0))
-      (isearch-message nil t))))
+      (isearch-message))))
 
 (defun isearch-lazy-highlight-search (string bound)
   "Search ahead for the next or previous match, for lazy highlighting.
@@ -3971,7 +3972,7 @@ Attempt to do the search exactly the way the pending 
Isearch would."
                    (setq isearch-lazy-count-total 0))
                  (setq isearch-lazy-count-current
                        (gethash opoint isearch-lazy-count-hash 0))
-                 (isearch-message nil t))
+                 (isearch-message))
              (setq isearch-lazy-highlight-timer
                    (run-at-time lazy-highlight-interval nil
                                 'isearch-lazy-highlight-buffer-update)))))))))



reply via email to

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