Function: checkdoc-y-or-n-p

checkdoc-y-or-n-p is a byte-compiled function defined in checkdoc.el.gz.

Signature

(checkdoc-y-or-n-p QUESTION)

Documentation

Like y-or-n-p, but pays attention to checkdoc-autofix-flag.

Argument QUESTION is the prompt passed to y-or-n-p.

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/checkdoc.el.gz
;;; Auto-fix helper functions
;;
(defun checkdoc-y-or-n-p (question)
  "Like `y-or-n-p', but pays attention to `checkdoc-autofix-flag'.
Argument QUESTION is the prompt passed to `y-or-n-p'."
  (prog1
      (if (or (not checkdoc-autofix-flag)
	      (eq checkdoc-autofix-flag 'never))
	  nil
	(y-or-n-p question))
    (if (eq checkdoc-autofix-flag 'automatic-then-never)
	(setq checkdoc-autofix-flag 'never))))