Function: y-or-n-p-insert-n

y-or-n-p-insert-n is an interactive and byte-compiled function defined in subr.el.gz.

Signature

(y-or-n-p-insert-n)

Documentation

Insert the answer "n" 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-n ()
  "Insert the answer \"n\" 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 "n")
    (exit-minibuffer)))