]> git.eshelyaron.com Git - emacs.git/commitdiff
(lisp-complete-symbol):
authorJuri Linkov <juri@jurta.org>
Sat, 22 Mar 2008 00:11:53 +0000 (00:11 +0000)
committerJuri Linkov <juri@jurta.org>
Sat, 22 Mar 2008 00:11:53 +0000 (00:11 +0000)
Use `minibuffer-message' to display message "No completions of %s"
when this command is called in the minibuffer.

lisp/ChangeLog
lisp/emacs-lisp/lisp.el

index d009c258038fe1e1377fe15d0eaa8bfdaef57cda..fad90534fe96a60a8a8ffd8a5cdeb3713e6bf7d7 100644 (file)
        (shell-dynamic-complete-environment-variable): Don't display
        completion messages when command is called in the minibuffer.
 
+       * emacs-lisp/lisp.el (lisp-complete-symbol):
+       Use `minibuffer-message' to display message "No completions of %s"
+       when this command is called in the minibuffer.
+
        * bindings.el (standard-mode-line-modes): Put special help-echo
        tooltip on recursive edit %[ %] mode-line constructs.
 
index 2829be961ca6501c5a46610292e8e3e100fe0dff..ee308719821306ed02f731fc380a741005d5539d 100644 (file)
@@ -667,7 +667,9 @@ considered."
             (completion (try-completion pattern obarray predicate)))
        (cond ((eq completion t))
              ((null completion)
-              (message "Can't find completion for \"%s\"" pattern)
+              (if (window-minibuffer-p (selected-window))
+                  (minibuffer-message (format " [No completions of \"%s\"]" pattern))
+                (message "Can't find completion for \"%s\"" pattern))
               (ding))
              ((not (string= pattern completion))
               (delete-region beg end)