]> git.eshelyaron.com Git - emacs.git/commitdiff
Make checkdoc-file-comments-engine match more ;;;### forms
authorLars Ingebrigtsen <larsi@gnus.org>
Thu, 2 Jun 2022 17:14:00 +0000 (19:14 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Thu, 2 Jun 2022 17:14:00 +0000 (19:14 +0200)
* 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).

lisp/emacs-lisp/checkdoc.el

index 346c20c590cbfdca90c07e7cdece97af86789a5b..5700afbb03eb6e8148736a0c7ba78c5313467c17 100644 (file)
@@ -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)