diff options
| author | Philipp Stephani | 2019-12-23 20:49:15 +0100 |
|---|---|---|
| committer | Philipp Stephani | 2019-12-23 20:49:15 +0100 |
| commit | e7edba42c8a525722cbd40f782b0df68e4976a62 (patch) | |
| tree | 655a3cbe4ad6a0e6117102b8097f5049183802e3 | |
| parent | b2571eccb5c039f930a211cf512a48e849b84e8c (diff) | |
| download | emacs-e7edba42c8a525722cbd40f782b0df68e4976a62.tar.gz emacs-e7edba42c8a525722cbd40f782b0df68e4976a62.zip | |
Don’t allow portable dumping in interactive mode (Bug#38453).
* src/pdumper.c (Fdump_emacs_portable): Don’t allow dumping in
interactive mode.
| -rw-r--r-- | src/pdumper.c | 3 |
1 files changed, 3 insertions, 0 deletions
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. */) | |||
| 4004 | { | 4004 | { |
| 4005 | eassert (initialized); | 4005 | eassert (initialized); |
| 4006 | 4006 | ||
| 4007 | if (! noninteractive) | ||
| 4008 | error ("Dumping Emacs works only in batch mode"); | ||
| 4009 | |||
| 4007 | if (will_dump_with_unexec_p ()) | 4010 | if (will_dump_with_unexec_p ()) |
| 4008 | error ("This Emacs instance was started under the assumption " | 4011 | error ("This Emacs instance was started under the assumption " |
| 4009 | "that it would be dumped with unexec, not the portable " | 4012 | "that it would be dumped with unexec, not the portable " |