Use `minibuffer-message' to display message "No completions of %s"
when this command is called in the minibuffer.
(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.
(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)