]> git.eshelyaron.com Git - emacs.git/commitdiff
* Make sure `default-directory' exists before spawning processes (bug#62004)
authorAndrea Corallo <akrl@sdf.org>
Wed, 8 Mar 2023 20:08:49 +0000 (21:08 +0100)
committerAndrea Corallo <akrl@sdf.org>
Wed, 8 Mar 2023 20:16:12 +0000 (21:16 +0100)
* lisp/emacs-lisp/comp.el (comp-final, comp-run-async-workers): Bind
`default-directory' to `invocation-directory'.

lisp/emacs-lisp/comp.el

index a1838b1abf2367fb8a8cb3a41203ea26ca0d6e62..283c00103b550ea9e496ca5f192e0e5e282803de 100644 (file)
@@ -3726,7 +3726,8 @@ Prepare every function for final compilation and drive the C back-end."
              (temp-file (make-temp-file
                         (concat "emacs-int-comp-"
                                 (file-name-base output) "-")
-                        nil ".el")))
+                        nil ".el"))
+             (default-directory invocation-directory))
        (with-temp-file temp-file
           (insert ";; -*-coding: utf-8-emacs-unix; -*-\n")
           (mapc (lambda (e)
@@ -4023,6 +4024,7 @@ display a message."
                         (comp-log "\n")
                         (mapc #'comp-log expr-strings)))
                    (load1 load)
+                   (default-directory invocation-directory)
                    (process (make-process
                              :name (concat "Compiling: " source-file)
                              :buffer (with-current-buffer