emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 0c44b8e: Fix handling of '--dump-file' command-line option


From: Eli Zaretskii
Subject: master 0c44b8e: Fix handling of '--dump-file' command-line option
Date: Thu, 25 Nov 2021 13:55:00 -0500 (EST)

branch: master
commit 0c44b8edb4778bbbc536d67b617e93a152b948de
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>

    Fix handling of '--dump-file' command-line option
    
    * lisp/startup.el (command-line-1): Handle "--dump-file" and
    "--seccomp" if they are left on the command-line.  (Bug#52106)
---
 lisp/startup.el | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/lisp/startup.el b/lisp/startup.el
index e110641..fc085e6 100644
--- a/lisp/startup.el
+++ b/lisp/startup.el
@@ -2393,6 +2393,7 @@ A fancy display is used on graphic displays, normal 
otherwise."
                ;; and long versions of what's on command-switch-alist.
                (longopts
                 (append '("--funcall" "--load" "--insert" "--kill"
+                          "--dump-file" "--seccomp"
                           "--directory" "--eval" "--execute" "--no-splash"
                           "--find-file" "--visit" "--file" "--no-desktop")
                         (mapcar (lambda (elt) (concat "-" (car elt)))
@@ -2554,6 +2555,11 @@ nil default-directory" name)
                          (error "File name omitted from `-insert' option"))
                      (insert-file-contents (command-line-normalize-file-name 
tem)))
 
+                    ((or (equal argi "-dump-file")
+                         (equal argi "-seccomp"))
+                     ;; This was processed in C.
+                     (or argval (pop command-line-args-left)))
+
                     ((equal argi "-kill")
                      (kill-emacs t))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]