summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/loaddefs-gen.el
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2022-10-18 13:14:08 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2022-10-18 13:14:08 +0200
commit86581698acc1a0991592e018c1ba749f3ded21be (patch)
treeb5d231a36de50d8482da54ba927d366a12be3e13 /lisp/emacs-lisp/loaddefs-gen.el
parentbaa39e48495e100af6704af9287b544e612c245a (diff)
downloademacs-86581698acc1a0991592e018c1ba749f3ded21be.tar.gz
emacs-86581698acc1a0991592e018c1ba749f3ded21be.tar.bz2
emacs-86581698acc1a0991592e018c1ba749f3ded21be.zip
Fix faulty loaddefs detection
* lisp/emacs-lisp/loaddefs-gen.el (loaddefs-generate--emacs-batch): Fix faulty loaddefs detection.
Diffstat (limited to 'lisp/emacs-lisp/loaddefs-gen.el')
-rw-r--r--lisp/emacs-lisp/loaddefs-gen.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/loaddefs-gen.el b/lisp/emacs-lisp/loaddefs-gen.el
index a1c4f91579e..a76bcf604f7 100644
--- a/lisp/emacs-lisp/loaddefs-gen.el
+++ b/lisp/emacs-lisp/loaddefs-gen.el
@@ -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))))