(loaddefs-generate--emacs-batch): Fix bug#79821

* lisp/emacs-lisp/loaddefs-gen.el (loaddefs-generate--emacs-batch):
Expand file names before changing directory, in case they're relative.
This commit is contained in:
Stefan Monnier 2025-11-13 08:23:17 -05:00
parent 5ccd4d7406
commit 580d74e1e1

View file

@ -821,7 +821,7 @@ use."
"Generate the loaddefs for the Emacs build.
This is like `loaddefs-generate-batch', but has some specific
rules for built-in packages and excluded files."
(let* ((args command-line-args-left)
(let* ((args (mapcar #'expand-file-name command-line-args-left))
;; We're run from $BUILDDIR/lisp but all the .el(c) files reside
;; (and are generated) in `lisp-directory' which is in $SRCDIR,
;; so go there and don't look back.