diff options
author | Richard M. Stallman <rms@gnu.org> | 2005-08-25 10:58:48 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 2005-08-25 10:58:48 +0000 |
commit | 754bf4be39ba4c1298bfb0b97553ef36d0c11b55 (patch) | |
tree | 3ca392d1cfab2c52e9c1ece7d0a132b60f36941f /lisp/isearch.el | |
parent | 2a65c7dbe9ec8e48b8179737a8fab98c70b25cf4 (diff) | |
download | emacs-754bf4be39ba4c1298bfb0b97553ef36d0c11b55.tar.gz |
(isearch-edit-string): Erase the Search prompt
if user enters an empty string and there is no default.
Diffstat (limited to 'lisp/isearch.el')
-rw-r--r-- | lisp/isearch.el | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/isearch.el b/lisp/isearch.el index f3fc51778e9..9e396f27545 100644 --- a/lisp/isearch.el +++ b/lisp/isearch.el @@ -1072,7 +1072,11 @@ If first char entered is \\[isearch-yank-word-or-char], then do word search inst (if isearch-nonincremental (progn ;; (sit-for 1) ;; needed if isearch-done does: (message "") - (isearch-done)))) + (isearch-done) + ;; The search done message is confusing when the string + ;; is empty, so erase it. + (if (equal isearch-string "") + (message ""))))) (quit ; handle abort-recursive-edit (isearch-abort) ;; outside of let to restore outside global values |