Function: read-char-from-minibuffer-insert-other
read-char-from-minibuffer-insert-other is an interactive and
byte-compiled function defined in subr.el.gz.
Signature
(read-char-from-minibuffer-insert-other)
Documentation
Reject a disallowed character typed into the minibuffer.
This command is intended to be bound to keys that users are not allowed to type into the minibuffer. When the user types any such key, this command discard all minibuffer input and displays an error message.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/subr.el.gz
(defun read-char-from-minibuffer-insert-other ()
"Reject a disallowed character typed into the minibuffer.
This command is intended to be bound to keys that users are not
allowed to type into the minibuffer. When the user types any
such key, this command discard all minibuffer input and displays
an error message."
(interactive)
(when (minibufferp)
(delete-minibuffer-contents)
(ding)
(discard-input)
(minibuffer-message "Wrong answer")
(sit-for 2)))