Function: minibuffer-keyboard-quit
minibuffer-keyboard-quit is an interactive and byte-compiled function
defined in delsel.el.gz.
Signature
(minibuffer-keyboard-quit)
Documentation
Abort recursive edit.
In Delete Selection mode, if the mark is active, just deactivate it;
then it takes a second C-g (keyboard-quit) to abort the minibuffer.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/delsel.el.gz
;; This is very useful for canceling a selection in the minibuffer without
;; aborting the minibuffer.
(defun minibuffer-keyboard-quit ()
"Abort recursive edit.
In Delete Selection mode, if the mark is active, just deactivate it;
then it takes a second \\[keyboard-quit] to abort the minibuffer."
(interactive)
(if (and delete-selection-mode (region-active-p))
(setq deactivate-mark t)
(abort-minibuffers)))