Subject: Re: bug#39168: 27.0.50; Error on command line flags with use dump-file flag with other flags

From: Lars Ingebrigtsen <[email-masked]>
Date: Thu, 10 Feb 2022 08:37:46 +0100

Yuan Fu <[email-masked]> writes:

> - dump an image: emacs --batch -q --eval '(dump-emacs-portable
>   "~/.emacs.d/emacs.pdmp")'
> - start emacs: ~/bin/emacs -q --dump-file=/Users/yuan/.emacs.d/emacs.pdmp -g 151x50
> - error: command-line-1: Unknown option ‘--dump-file=/Users/yuan/.emacs.d/emacs.pdmp’

(I'm going through old bug reports that unfortunately weren't resolved
at the time.)

I tried reproducing this on the current Emacs trunk:

larsi@giant:~/src/emacs/trunk$ ./src/emacs --batch -q --eval '(dump-emacs-portable  "/tmp/emacs.pdmp")'
Dumping fingerprint: 242a38e947fb351c885b84edcc58743b99c0803abfc37d2f3a62eb0ed696c781
Dump complete
Byte counts: header=100 hot=7603292 discardable=135072 cold=3591048
Reloc counts: hot=428962 discardable=5173
larsi@giant:~/src/emacs/trunk$ ./src/emacs -Q --dump-file /tmp/emacs.pdmp 

But it seems to work fine there.  Are you still seeing this issue in
recent Emacs versions?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no