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 "