]> git.eshelyaron.com Git - emacs.git/commitdiff
minibuffer.el: Use completion--message instead of minibuffer-message
authorDaniel Mendler <mail@daniel-mendler.de>
Mon, 19 Apr 2021 13:40:00 +0000 (15:40 +0200)
committerStefan Monnier <monnier@iro.umontreal.ca>
Mon, 19 Apr 2021 19:52:01 +0000 (15:52 -0400)
* minibuffer.el: Use completion--message consistently for the messages
"Incomplete", "Sole completion" and "No completions".

lisp/minibuffer.el

index 4a414aef4e0f6b84855f55b280673f90cb3b5135..c19f909629034066d812ea3e1968b96bd9ddbd05 100644 (file)
@@ -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))