Mercurial > emacs
changeset 65115:b66a53128ca5
(isearch-edit-string): Erase the Search prompt
if user enters an empty string and there is no default.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Thu, 25 Aug 2005 10:58:48 +0000 |
parents | fcb6fe79c532 |
children | 0991b4a5145c |
files | lisp/isearch.el |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/isearch.el Thu Aug 25 10:57:38 2005 +0000 +++ b/lisp/isearch.el Thu Aug 25 10:58:48 2005 +0000 @@ -1072,7 +1072,11 @@ (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