From: Daniel Mendler Date: Mon, 19 Apr 2021 13:40:00 +0000 (+0200) Subject: minibuffer.el: Use completion--message instead of minibuffer-message X-Git-Tag: emacs-28.0.90~2809 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9216e1818a6f8dd33f98d435fc4927f6dd361d5c;p=emacs.git minibuffer.el: Use completion--message instead of minibuffer-message * minibuffer.el: Use completion--message consistently for the messages "Incomplete", "Sole completion" and "No completions". --- diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el index 4a414aef4e0..c19f9096290 100644 --- a/lisp/minibuffer.el +++ b/lisp/minibuffer.el @@ -1437,7 +1437,7 @@ KEYFUN takes an element of ELEMS and should return a numerical value." ;; test-completion, then we shouldn't exit, but that should be rare. (lambda () (if minibuffer--require-match - (minibuffer-message "Incomplete") + (completion--message "Incomplete") ;; If a match is not required, exit after all. (exit-minibuffer))))) @@ -2022,7 +2022,7 @@ variables.") ;; the sole completion, then hide (previous&stale) completions. (minibuffer-hide-completions) (ding) - (minibuffer-message + (completion--message (if completions "Sole completion" "No completions"))) (let* ((last (last completions))