From: Lars Ingebrigtsen Date: Tue, 18 Oct 2022 11:14:08 +0000 (+0200) Subject: Fix faulty loaddefs detection X-Git-Tag: emacs-29.0.90~1616^2~555 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=86581698acc1a0991592e018c1ba749f3ded21be;p=emacs.git Fix faulty loaddefs detection * lisp/emacs-lisp/loaddefs-gen.el (loaddefs-generate--emacs-batch): Fix faulty loaddefs detection. --- 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))))