summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/checkdoc.el
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2022-06-02 19:14:00 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2022-06-02 19:14:00 +0200
commit8f279c8666dc642ed1f8f49aa709530fcea47374 (patch)
treeaba66e41a7f57111cdeeb7cff575c7b86d352c89 /lisp/emacs-lisp/checkdoc.el
parentda736c9f028f4d8fb117f116569fb72f706c9b45 (diff)
downloademacs-8f279c8666dc642ed1f8f49aa709530fcea47374.tar.gz
emacs-8f279c8666dc642ed1f8f49aa709530fcea47374.tar.bz2
emacs-8f279c8666dc642ed1f8f49aa709530fcea47374.zip
Make checkdoc-file-comments-engine match more ;;;### forms
* lisp/emacs-lisp/checkdoc.el (checkdoc-file-comments-engine): Use the more general lisp-mode-autoload-regexp instead of generate-autoload-cookie (i.e., also match ;;;###tramp-autoload).
Diffstat (limited to 'lisp/emacs-lisp/checkdoc.el')
-rw-r--r--lisp/emacs-lisp/checkdoc.el6
1 files changed, 2 insertions, 4 deletions
diff --git a/lisp/emacs-lisp/checkdoc.el b/lisp/emacs-lisp/checkdoc.el
index 346c20c590c..5700afbb03e 100644
--- a/lisp/emacs-lisp/checkdoc.el
+++ b/lisp/emacs-lisp/checkdoc.el
@@ -2464,11 +2464,9 @@ Code:, and others referenced in the style guide."
pos)
(goto-char (point-min))
;; match ";;;###autoload" cookie to keep it with the form
- (require 'autoload)
(while (and cont (re-search-forward
- (concat "^\\("
- (regexp-quote generate-autoload-cookie)
- "\n\\)?"
+ (concat "^\\(" lisp-mode-autoload-regexp
+ "\n\\)?"
"(")
nil t))
(setq pos (match-beginning 0)