[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 8f279c8666 2/2: Make checkdoc-file-comments-engine match more ; ;
From: |
Lars Ingebrigtsen |
Subject: |
master 8f279c8666 2/2: Make checkdoc-file-comments-engine match more ; ; ; ### forms |
Date: |
Thu, 2 Jun 2022 13:14:17 -0400 (EDT) |
branch: master
commit 8f279c8666dc642ed1f8f49aa709530fcea47374
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>
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).
---
lisp/emacs-lisp/checkdoc.el | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/lisp/emacs-lisp/checkdoc.el b/lisp/emacs-lisp/checkdoc.el
index 346c20c590..5700afbb03 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)