Function: minibuffer-error-function
minibuffer-error-function is a byte-compiled function defined in
simple.el.gz.
Signature
(minibuffer-error-function DATA CONTEXT CALLER)
Documentation
Display error messages in the active minibuffer.
The same as command-error-default-function but display error messages
at the end of the minibuffer using minibuffer-message to not obscure
the minibuffer contents.
Source Code
;; Defined in /usr/src/emacs/lisp/simple.el.gz
(defun minibuffer-error-function (data context caller)
"Display error messages in the active minibuffer.
The same as `command-error-default-function' but display error messages
at the end of the minibuffer using `minibuffer-message' to not obscure
the minibuffer contents."
(if (memq 'minibuffer-quit (get (car data) 'error-conditions))
(ding t)
(discard-input)
(ding))
(let ((string (error-message-string data)))
;; If we know from where the error was signaled, show it in
;; *Messages*.
(let ((inhibit-message t))
(message "%s%s" (if caller (format "%s: " caller) "") string))
;; Display an error message at the end of the minibuffer.
(minibuffer-message (apply #'propertize (format " [%s%s]" context string)
minibuffer-prompt-properties))))