From 40c7f2563be53e87882095a5f4aed4da6564685c Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Thu, 25 Aug 2005 10:58:48 +0000 Subject: [PATCH] (isearch-edit-string): Erase the Search prompt if user enters an empty string and there is no default. --- lisp/isearch.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- 2.39.2