changeset 43129:67d86dad5454

(isearch-update): Don't update display in kbd macro. (isearch-lazy-highlight-new-loop): Do nothing in kbd macro.
author Richard M. Stallman <rms@gnu.org>
date Wed, 06 Feb 2002 15:25:15 +0000
parents d7ccb71bc97c
children 97ca502aebf5
files lisp/isearch.el
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/isearch.el	Wed Feb 06 15:23:30 2002 +0000
+++ b/lisp/isearch.el	Wed Feb 06 15:25:15 2002 +0000
@@ -616,7 +616,8 @@
 
 (defun isearch-update ()
   ;; Called after each command to update the display.  
-  (if (null unread-command-events)
+  (if (and (null unread-command-events)
+	   (null executing-kbd-macro))
       (progn
         (if (not (input-pending-p))
             (isearch-message))
@@ -2002,6 +2003,7 @@
 This happens when `isearch-update' is invoked (which can cause the
 search string to change or the window to scroll)."
   (when (and isearch-lazy-highlight
+	     (null executing-kbd-macro)
              (sit-for 0)         ;make sure (window-start) is credible
              (or (not (equal isearch-string
                              isearch-lazy-highlight-last-string))