Function: checkdoc-package-keywords
checkdoc-package-keywords is an autoloaded, interactive and
byte-compiled function defined in checkdoc.el.gz.
Signature
(checkdoc-package-keywords)
Documentation
Find package keywords that aren't in finder-known-keywords.
Probably introduced at or before Emacs version 25.1.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/checkdoc.el.gz
;;;###autoload
(defun checkdoc-package-keywords ()
"Find package keywords that aren't in `finder-known-keywords'."
(interactive)
(require 'finder)
(let ((unrecognized-keys
(cl-remove-if
(lambda (x) (assoc (intern-soft x) finder-known-keywords))
(checkdoc-get-keywords))))
(if unrecognized-keys
(let* ((checkdoc-autofix-flag 'never)
(checkdoc-generate-compile-warnings-flag t))
(save-excursion
(goto-char (point-min))
(re-search-forward "^;; Keywords: \\(.*\\)$" nil t)
(checkdoc-start-section "checkdoc-package-keywords")
(checkdoc-create-error
(concat "Unrecognized keywords: "
(mapconcat #'identity unrecognized-keys ", "))
(match-beginning 1) (match-end 1)))
(checkdoc-show-diagnostics))
(when (called-interactively-p 'any)
(message "No Package Keyword Errors.")))))