diff options
| author | Eli Zaretskii | 2019-01-16 17:55:53 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2019-01-16 17:55:53 +0200 |
| commit | ebd174e218f46e2d3e30646a8426f6ec1ae9e8d1 (patch) | |
| tree | d0b88ce3b9538920d5f495e3c86503b259baaf71 /doc | |
| parent | e96a54eb3bdfd75bafbe795ec6dd7b94ff65b8ac (diff) | |
| download | emacs-ebd174e218f46e2d3e30646a8426f6ec1ae9e8d1.tar.gz emacs-ebd174e218f46e2d3e30646a8426f6ec1ae9e8d1.zip | |
Improve documentation of pdumper; minor code cleanup
* src/emacs.c (usage_message): Add the --dump-file option.
(string_starts_with_p, find_argument): Functions removed; use
'argmatch' instead.
(PDUMP_FILE_ARG): Macro removed; use literal strings instead,
as with other command-line options. Use HAVE_PDUMPER for cpp
conditionals which used PDUMP_FILE_ARG.
(load_pdump, main): Use 'argmatch' for "--dump-file" and
"--temacs" arguments, thus supporting the "-dump-file" and
"-temacs" variants, for consistency with other options.
(main): Remove the extra fatal error for using --dump-file in
unexec'ed Emacs: load_pdump does that anyway.
(standard_args): Add --dump-file and --temacs, with
appropriate priorities.
* etc/NEWS: Expand on the pdumper support.
* doc/emacs/cmdargs.texi (Initial Options): Document the
'--dump-file' command-line option.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/emacs/cmdargs.texi | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/emacs/cmdargs.texi b/doc/emacs/cmdargs.texi index d51d97b48a2..b49126764a6 100644 --- a/doc/emacs/cmdargs.texi +++ b/doc/emacs/cmdargs.texi | |||
| @@ -383,6 +383,17 @@ verify that their module conforms to the module API requirements. The | |||
| 383 | option makes Emacs abort if a module-related assertion triggers. | 383 | option makes Emacs abort if a module-related assertion triggers. |
| 384 | @xref{Writing Dynamic Modules,, Writing Dynamically-Loaded Modules, | 384 | @xref{Writing Dynamic Modules,, Writing Dynamically-Loaded Modules, |
| 385 | elisp, The GNU Emacs Lisp Reference Manual}. | 385 | elisp, The GNU Emacs Lisp Reference Manual}. |
| 386 | |||
| 387 | @item --dump-file=@var{file} | ||
| 388 | @opindex --dump-file | ||
| 389 | @cindex specify dump file | ||
| 390 | Load the dumped Emacs state from the named @var{file}. By default, | ||
| 391 | Emacs will look for its dump state in a file named | ||
| 392 | @file{@var{emacs}.pdmp} in the directory of the executable, where | ||
| 393 | @var{emacs} is the name of the Emacs executable file, normally just | ||
| 394 | @file{emacs}. However, if you rename or move the dump file to a | ||
| 395 | different place, you can use this option to tell Emacs where to find | ||
| 396 | that file. | ||
| 386 | @end table | 397 | @end table |
| 387 | 398 | ||
| 388 | @node Command Example | 399 | @node Command Example |