]> git.eshelyaron.com Git - emacs.git/commitdiff
Allow EXCLUDED-FILES in loaddefs-generate to be relative
authorLars Ingebrigtsen <larsi@gnus.org>
Sat, 13 Aug 2022 12:07:41 +0000 (14:07 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Sat, 13 Aug 2022 12:07:41 +0000 (14:07 +0200)
* lisp/emacs-lisp/loaddefs-gen.el (loaddefs-generate): Allow the
excluded files to be relative (bug#57144).

lisp/emacs-lisp/loaddefs-gen.el

index 6cb5d00782f2eca883ae460c76721b11f62ef757..31e1514193f778af27ee291e74863ea7c7530fd5 100644 (file)
@@ -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