diff options
| author | Richard M. Stallman | 1997-06-23 01:37:22 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-06-23 01:37:22 +0000 |
| commit | 1b7ddf4f7548c538cc97d0eda41782488007a93e (patch) | |
| tree | db8f990c1a5f7533d6e097ab1cf6da97c8f9e148 /src | |
| parent | 87a98b1a3107a25c723c89392a35527af78653d1 (diff) | |
| download | emacs-1b7ddf4f7548c538cc97d0eda41782488007a93e.tar.gz emacs-1b7ddf4f7548c538cc97d0eda41782488007a93e.zip | |
(Fdump_emacs): Bind command-line-processed to nil here.
Diffstat (limited to 'src')
| -rw-r--r-- | src/emacs.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/emacs.c b/src/emacs.c index 67f78ff1540..31a2b6995e0 100644 --- a/src/emacs.c +++ b/src/emacs.c | |||
| @@ -1486,20 +1486,24 @@ DEFUN ("dump-emacs", Fdump_emacs, Sdump_emacs, 2, 2, 0, | |||
| 1486 | Take symbols from SYMFILE (presumably the file you executed to run Emacs).\n\ | 1486 | Take symbols from SYMFILE (presumably the file you executed to run Emacs).\n\ |
| 1487 | This is used in the file `loadup.el' when building Emacs.\n\ | 1487 | This is used in the file `loadup.el' when building Emacs.\n\ |
| 1488 | \n\ | 1488 | \n\ |
| 1489 | Bind `command-line-processed' to nil before dumping,\n\ | ||
| 1490 | if you want the dumped Emacs to process its command line\n\ | ||
| 1491 | and announce itself normally when it is run.\n\ | ||
| 1492 | \n\ | ||
| 1493 | You must run Emacs in batch mode in order to dump it.") | 1489 | You must run Emacs in batch mode in order to dump it.") |
| 1494 | (filename, symfile) | 1490 | (filename, symfile) |
| 1495 | Lisp_Object filename, symfile; | 1491 | Lisp_Object filename, symfile; |
| 1496 | { | 1492 | { |
| 1497 | extern char my_edata[]; | 1493 | extern char my_edata[]; |
| 1498 | Lisp_Object tem; | 1494 | Lisp_Object tem; |
| 1495 | Lisp_Object symbol; | ||
| 1496 | int count = specpdl_ptr - specpdl; | ||
| 1499 | 1497 | ||
| 1500 | if (! noninteractive) | 1498 | if (! noninteractive) |
| 1501 | error ("Dumping Emacs works only in batch mode"); | 1499 | error ("Dumping Emacs works only in batch mode"); |
| 1502 | 1500 | ||
| 1501 | /* Bind `command-line-processed' to nil before dumping, | ||
| 1502 | so that the dumped Emacs will process its command line | ||
| 1503 | and set up to work with X windows if appropriate. */ | ||
| 1504 | symbol = intern ("command-line-process"); | ||
| 1505 | specbind (symbol, Qnil); | ||
| 1506 | |||
| 1503 | CHECK_STRING (filename, 0); | 1507 | CHECK_STRING (filename, 0); |
| 1504 | filename = Fexpand_file_name (filename, Qnil); | 1508 | filename = Fexpand_file_name (filename, Qnil); |
| 1505 | if (!NILP (symfile)) | 1509 | if (!NILP (symfile)) |
| @@ -1545,7 +1549,7 @@ You must run Emacs in batch mode in order to dump it.") | |||
| 1545 | 1549 | ||
| 1546 | Vpurify_flag = tem; | 1550 | Vpurify_flag = tem; |
| 1547 | 1551 | ||
| 1548 | return Qnil; | 1552 | return unbind_to (count, Qnil); |
| 1549 | } | 1553 | } |
| 1550 | 1554 | ||
| 1551 | #endif /* not HAVE_SHM */ | 1555 | #endif /* not HAVE_SHM */ |