summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/lisp.el
diff options
context:
space:
mode:
authorJuri Linkov <juri@jurta.org>2008-03-22 00:10:59 +0000
committerJuri Linkov <juri@jurta.org>2008-03-22 00:10:59 +0000
commit569a1ea7fd9387ef5dd28eda80114f5b8298e308 (patch)
tree566b61bcb295f21d33c7cd0429644cf7d66ab65d /lisp/emacs-lisp/lisp.el
parentc6c5f53dcdf2eb6924a6737dde999d33aca7961f (diff)
downloademacs-569a1ea7fd9387ef5dd28eda80114f5b8298e308.tar.gz
(lisp-complete-symbol):
Use `minibuffer-message' to display message "No completions of %s" when this command is called in the minibuffer.
Diffstat (limited to 'lisp/emacs-lisp/lisp.el')
-rw-r--r--lisp/emacs-lisp/lisp.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/lisp.el b/lisp/emacs-lisp/lisp.el
index 2829be961ca..ee308719821 100644
--- a/lisp/emacs-lisp/lisp.el
+++ b/lisp/emacs-lisp/lisp.el
@@ -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)