From: Richard M. Stallman Date: Thu, 25 Aug 2005 10:58:48 +0000 (+0000) Subject: (isearch-edit-string): Erase the Search prompt X-Git-Tag: emacs-pretest-22.0.90~7458 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=40c7f2563be53e87882095a5f4aed4da6564685c;p=emacs.git (isearch-edit-string): Erase the Search prompt if user enters an empty string and there is no default. --- 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