summaryrefslogtreecommitdiff
path: root/doc/emacs/cmdargs.texi
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2019-01-16 17:55:53 +0200
committerEli Zaretskii <eliz@gnu.org>2019-01-16 17:55:53 +0200
commitebd174e218f46e2d3e30646a8426f6ec1ae9e8d1 (patch)
treed0b88ce3b9538920d5f495e3c86503b259baaf71 /doc/emacs/cmdargs.texi
parente96a54eb3bdfd75bafbe795ec6dd7b94ff65b8ac (diff)
downloademacs-ebd174e218f46e2d3e30646a8426f6ec1ae9e8d1.tar.gz
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/emacs/cmdargs.texi')
-rw-r--r--doc/emacs/cmdargs.texi11
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
option makes Emacs abort if a module-related assertion triggers.
@xref{Writing Dynamic Modules,, Writing Dynamically-Loaded Modules,
elisp, The GNU Emacs Lisp Reference Manual}.
+
+@item --dump-file=@var{file}
+@opindex --dump-file
+@cindex specify dump file
+Load the dumped Emacs state from the named @var{file}. By default,
+Emacs will look for its dump state in a file named
+@file{@var{emacs}.pdmp} in the directory of the executable, where
+@var{emacs} is the name of the Emacs executable file, normally just
+@file{emacs}. However, if you rename or move the dump file to a
+different place, you can use this option to tell Emacs where to find
+that file.
@end table
@node Command Example