]> git.eshelyaron.com Git - emacs.git/commitdiff
Remove the filename argument from the command line after an ELC+ELN build
authorAlan Mackenzie <acm@muc.de>
Mon, 10 Jan 2022 17:05:41 +0000 (17:05 +0000)
committerAlan Mackenzie <acm@muc.de>
Mon, 10 Jan 2022 17:05:41 +0000 (17:05 +0000)
This fixes bug #53164.  Without this fix, bootstrap-emacs loads the source
file uselessly into a buffer after completing the compilation.

lisp/emacs-lisp/comp.el

index 2ced6277adde48633f4486666e01ced475574de9..5b8c20f2bf89ec07ec05e24bc6ad0b5eef896c32 100644 (file)
@@ -4224,7 +4224,8 @@ variable 'NATIVE_DISABLED' is set, only byte compile."
       (batch-native-compile)
       (pcase byte-to-native-output-file
         (`(,tempfile . ,target-file)
-         (rename-file tempfile target-file t))))))
+         (rename-file tempfile target-file t)))
+      (setq command-line-args-left (cdr command-line-args-left)))))
 
 ;;;###autoload
 (defun native-compile-async (files &optional recursively load selector)