changeset 18394:d249b1ae0a02

(Fdump_emacs): Error if not run in batch mode.
author Richard M. Stallman <rms@gnu.org>
date Mon, 23 Jun 1997 00:47:19 +0000
parents f34e9defc58c
children 4b6ab0b6fd50
files src/emacs.c
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/emacs.c	Mon Jun 23 00:30:48 1997 +0000
+++ b/src/emacs.c	Mon Jun 23 00:47:19 1997 +0000
@@ -1488,13 +1488,18 @@
 \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))