]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix faulty loaddefs detection
authorLars Ingebrigtsen <larsi@gnus.org>
Tue, 18 Oct 2022 11:14:08 +0000 (13:14 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Tue, 18 Oct 2022 11:14:08 +0000 (13:14 +0200)
* lisp/emacs-lisp/loaddefs-gen.el
(loaddefs-generate--emacs-batch): Fix faulty loaddefs detection.

lisp/emacs-lisp/loaddefs-gen.el

index a1c4f91579ee8cf9bbb87f7cd536a6b39670e440..a76bcf604f7e614c44e106c29f25d14dbbe05c52 100644 (file)
@@ -738,7 +738,8 @@ rules for built-in packages and excluded files."
       (expand-file-name "emacs-lisp/loaddefs-gen.el" lisp-directory)
       output-file)))
   (let ((lisp-mode-autoload-regexp
-           "^;;;###\\(\\(noexist\\)-\\)?\\(theme-autoload\\)"))
+         ;; Avoid autoloads detection from loaddefs-gen.
+         (concat "^;;;###\\(\\(noexist\\)-\\)?\\(theme" "-autoload\\)")))
       (loaddefs-generate
        (expand-file-name "../etc/themes/" lisp-directory)
        (expand-file-name "theme-loaddefs.el" lisp-directory))))