From: Lars Ingebrigtsen Date: Sat, 13 Aug 2022 12:07:41 +0000 (+0200) Subject: Allow EXCLUDED-FILES in loaddefs-generate to be relative X-Git-Tag: emacs-29.0.90~1447^2~191 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2bbb007e166764726079d6b32c2478b26c58270b;p=emacs.git Allow EXCLUDED-FILES in loaddefs-generate to be relative * lisp/emacs-lisp/loaddefs-gen.el (loaddefs-generate): Allow the excluded files to be relative (bug#57144). --- diff --git a/lisp/emacs-lisp/loaddefs-gen.el b/lisp/emacs-lisp/loaddefs-gen.el index 6cb5d00782f..31e1514193f 100644 --- a/lisp/emacs-lisp/loaddefs-gen.el +++ b/lisp/emacs-lisp/loaddefs-gen.el @@ -551,6 +551,11 @@ instead of just updating them with the new/changed autoloads." (updating (and (file-exists-p output-file) (not generate-full))) (defs nil)) + ;; Allow the excluded files to be relative. + (setq excluded-files + (mapcar (lambda (file) (expand-file-name file dir)) + excluded-files)) + ;; Collect all the autoload data. (let ((progress (make-progress-reporter (byte-compile-info