* lisp/emacs-lisp/loaddefs-gen.el
(loaddefs-generate--emacs-batch): Fix faulty loaddefs detection.
(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))))