diff --git a/src/emacs.c b/src/emacs.c index adf9660a837604becf882b378546a1a0b2cbcd26..67f78ff15409ea509ad291eb820f17d78bf9f0c1 100644 --- a/src/emacs.c +++ b/src/emacs.c @@ -1488,13 +1488,18 @@ This is used in the file `loadup.el' when building Emacs.\n\ \n\ Bind `command-line-processed' to nil before dumping,\n\ if you want the dumped Emacs to process its command line\n\ -and announce itself normally when it is run.") +and announce itself normally when it is run.\n\ +\n\ +You must run Emacs in batch mode in order to dump it.") (filename, symfile) Lisp_Object filename, symfile; { extern char my_edata[]; Lisp_Object tem; + if (! noninteractive) + error ("Dumping Emacs works only in batch mode"); + CHECK_STRING (filename, 0); filename = Fexpand_file_name (filename, Qnil); if (!NILP (symfile))