# HG changeset patch # User Richard M. Stallman # Date 1124967528 0 # Node ID b66a53128ca5918e7a751b4920a90dbdb4f3188a # Parent fcb6fe79c532aba82b5825560e693162c4de5229 (isearch-edit-string): Erase the Search prompt if user enters an empty string and there is no default. diff -r fcb6fe79c532 -r b66a53128ca5 lisp/isearch.el --- 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