From: Philipp Stephani Date: Mon, 23 Dec 2019 19:49:15 +0000 (+0100) Subject: Don’t allow portable dumping in interactive mode (Bug#38453). X-Git-Tag: emacs-27.0.90~290 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=719a6924c433baf3c7beaddedd72fac0deaac74a;p=emacs.git Don’t allow portable dumping in interactive mode (Bug#38453). * src/pdumper.c (Fdump_emacs_portable): Don’t allow dumping in interactive mode. (cherry picked from commit e7edba42c8a525722cbd40f782b0df68e4976a62) --- diff --git a/src/pdumper.c b/src/pdumper.c index 74f198c4ae3..e944cdb1c6c 100644 --- a/src/pdumper.c +++ b/src/pdumper.c @@ -4004,6 +4004,9 @@ types. */) { eassert (initialized); + if (! noninteractive) + error ("Dumping Emacs works only in batch mode"); + if (will_dump_with_unexec_p ()) error ("This Emacs instance was started under the assumption " "that it would be dumped with unexec, not the portable "