diff options
| author | Richard M. Stallman | 2004-09-04 19:41:45 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2004-09-04 19:41:45 +0000 |
| commit | 5f3a57c98eb76107524296308020f8db2cd5a4a5 (patch) | |
| tree | 0bc38250e84e6f864bb04f97e36fecb83c2d1a23 | |
| parent | 240c0c90e557cd161e22f1255b580076ee5d4d93 (diff) | |
| download | emacs-5f3a57c98eb76107524296308020f8db2cd5a4a5.tar.gz emacs-5f3a57c98eb76107524296308020f8db2cd5a4a5.zip | |
(isearch-lazy-highlight-new-loop): Don't invoke
highlighting if the search string is empty.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/isearch.el | 7 |
2 files changed, 9 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index f3ccc6f6099..fddb16478f6 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2004-09-04 Richard M. Stallman <rms@gnu.org> | ||
| 2 | |||
| 3 | * isearch.el (isearch-lazy-highlight-new-loop): Don't invoke | ||
| 4 | highlighting if the search string is empty. | ||
| 5 | |||
| 1 | 2004-09-04 Luc Teirlinck <teirllm@auburn.edu> | 6 | 2004-09-04 Luc Teirlinck <teirllm@auburn.edu> |
| 2 | 7 | ||
| 3 | * facemenu.el (facemenu-active-faces): Change condition of inner | 8 | * facemenu.el (facemenu-active-faces): Change condition of inner |
diff --git a/lisp/isearch.el b/lisp/isearch.el index 9d1e56aaf6e..572553d816a 100644 --- a/lisp/isearch.el +++ b/lisp/isearch.el | |||
| @@ -2362,9 +2362,10 @@ search string to change or the window to scroll)." | |||
| 2362 | isearch-lazy-highlight-case-fold-search isearch-case-fold-search | 2362 | isearch-lazy-highlight-case-fold-search isearch-case-fold-search |
| 2363 | isearch-lazy-highlight-regexp isearch-regexp | 2363 | isearch-lazy-highlight-regexp isearch-regexp |
| 2364 | isearch-lazy-highlight-wrapped nil) | 2364 | isearch-lazy-highlight-wrapped nil) |
| 2365 | (setq isearch-lazy-highlight-timer | 2365 | (unless (equal isearch-string "") |
| 2366 | (run-with-idle-timer isearch-lazy-highlight-initial-delay nil | 2366 | (setq isearch-lazy-highlight-timer |
| 2367 | 'isearch-lazy-highlight-update))))) | 2367 | (run-with-idle-timer isearch-lazy-highlight-initial-delay nil |
| 2368 | 'isearch-lazy-highlight-update)))))) | ||
| 2368 | 2369 | ||
| 2369 | (defun isearch-lazy-highlight-search () | 2370 | (defun isearch-lazy-highlight-search () |
| 2370 | "Search ahead for the next or previous match, for lazy highlighting. | 2371 | "Search ahead for the next or previous match, for lazy highlighting. |