Function: checkdoc-message-text
checkdoc-message-text is an autoloaded, interactive and byte-compiled
function defined in checkdoc.el.gz.
Signature
(checkdoc-message-text &optional TAKE-NOTES)
Documentation
Scan the buffer for occurrences of the error function, and verify text.
Optional argument TAKE-NOTES causes all errors to be logged.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/checkdoc.el.gz
;;;###autoload
(defun checkdoc-message-text (&optional take-notes)
"Scan the buffer for occurrences of the error function, and verify text.
Optional argument TAKE-NOTES causes all errors to be logged."
(interactive "P" emacs-lisp-mode)
(if take-notes (checkdoc-start-section "checkdoc-message-text"))
(let* ((p (point)) e
(checkdoc-autofix-flag (if take-notes 'never checkdoc-autofix-flag))
(checkdoc-generate-compile-warnings-flag
(or take-notes checkdoc-generate-compile-warnings-flag)))
(setq e (checkdoc-message-text-search))
(if (not (called-interactively-p 'interactive))
e
(if e
(user-error "%s" (checkdoc-error-text e))
(checkdoc-show-diagnostics)))
(goto-char p))
(if (called-interactively-p 'interactive)
(message "Checking interactive message text...done.")))