diff options
author | Richard M. Stallman <rms@gnu.org> | 2002-02-06 15:25:15 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 2002-02-06 15:25:15 +0000 |
commit | 4c01d4bda7dc8a8af9a63b6e6cb43bf716244460 (patch) | |
tree | 6c6b6bfa17d7c1880f3dac83b46ca438ee0ee5b5 /lisp | |
parent | b128536423cda9e4fd11e9449b011c474a746c2a (diff) | |
download | emacs-4c01d4bda7dc8a8af9a63b6e6cb43bf716244460.tar.gz |
(isearch-update): Don't update display in kbd macro.
(isearch-lazy-highlight-new-loop): Do nothing in kbd macro.
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/isearch.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/isearch.el b/lisp/isearch.el index e03d5df0ea8..502285a357b 100644 --- a/lisp/isearch.el +++ b/lisp/isearch.el @@ -616,7 +616,8 @@ is treated as a regexp. See \\[isearch-forward] for more info." (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 @@ is nil. This function is called when exiting an incremental search if 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)) |