]> 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>
Tue, 11 Jan 2022 18:29:07 +0000 (18:29 +0000)
committerAlan Mackenzie <acm@muc.de>
Tue, 11 Jan 2022 18:29:07 +0000 (18:29 +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 cf2dbd62f116d5e43db862ef8583695577b35d86..e50538c4232430384a5cc5a343d702a4c5124727 100644 (file)
@@ -4216,7 +4216,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)