Function: y-or-n-p-insert-y
y-or-n-p-insert-y is an interactive and byte-compiled function defined
in subr.el.gz.
Signature
(y-or-n-p-insert-y)
Documentation
Insert the answer "y" and exit the minibuffer of y-or-n-p.
Discard all previous input before inserting and exiting the minibuffer.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/subr.el.gz
(defun y-or-n-p-insert-y ()
"Insert the answer \"y\" and exit the minibuffer of `y-or-n-p'.
Discard all previous input before inserting and exiting the minibuffer."
(interactive)
(when (minibufferp)
(delete-minibuffer-contents)
(insert "y")
(exit-minibuffer)))