From 87a98b1a3107a25c723c89392a35527af78653d1 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Mon, 23 Jun 1997 00:47:19 +0000 Subject: [PATCH] (Fdump_emacs): Error if not run in batch mode. --- src/emacs.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/emacs.c b/src/emacs.c index adf9660a837..67f78ff1540 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)) -- 2.39.5