]> code.delx.au - gnu-emacs/commitdiff
(isearch-edit-string): Erase the Search prompt
authorRichard M. Stallman <rms@gnu.org>
Thu, 25 Aug 2005 10:58:48 +0000 (10:58 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 25 Aug 2005 10:58:48 +0000 (10:58 +0000)
if user enters an empty string and there is no default.

lisp/isearch.el

index f3fc51778e9baa2982eaf526333e11e597d9cfee..9e396f27545caf9998802edaeb7857d8fcff1a12 100644 (file)
@@ -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