aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorEli Zaretskii2019-01-26 12:08:56 +0200
committerEli Zaretskii2019-01-26 12:08:56 +0200
commita7974933dd818194de3c9387b95dbd122bcf506c (patch)
tree313d57e1561420c541114795150193c4c199570b /doc
parentbf4099b23738f0a481fb6020337039d84506fda4 (diff)
downloademacs-a7974933dd818194de3c9387b95dbd122bcf506c.tar.gz
emacs-a7974933dd818194de3c9387b95dbd122bcf506c.zip
Improve pdump file search and 'pdumper-stats'
* src/pdumper.c (pdumper_record_wd): New function. (pdumper_load): Use xstrdup instead of strdup, as on MS-Windows the latter uses the wrong heap. Don't free a NULL pointer. * src/emacs.c (load_pdump): Support the use case where the Emacs binary was renamed: look in exec-directory for the pdump file whose base name is derived from the Emacs binary, in addition to just emacs.pdmp. (main): Call pdumper_record_wd to prepend CWD to the pdump file name. * src/fileio.c (file_name_absolute_p): Now extern. * src/lisp.h (file_name_absolute_p): Add prototype. * src/pdumper.h (pdumper_record_wd): Add prototype. * doc/emacs/cmdargs.texi (Initial Options): Update the documentation of where Emacs looks for the dump file.
Diffstat (limited to 'doc')
-rw-r--r--doc/emacs/cmdargs.texi16
1 files changed, 10 insertions, 6 deletions
diff --git a/doc/emacs/cmdargs.texi b/doc/emacs/cmdargs.texi
index b49126764a6..00d5be70eb2 100644
--- a/doc/emacs/cmdargs.texi
+++ b/doc/emacs/cmdargs.texi
@@ -387,12 +387,16 @@ elisp, The GNU Emacs Lisp Reference Manual}.
387@item --dump-file=@var{file} 387@item --dump-file=@var{file}
388@opindex --dump-file 388@opindex --dump-file
389@cindex specify dump file 389@cindex specify dump file
390Load the dumped Emacs state from the named @var{file}. By default, 390Load the dumped Emacs state from the named @var{file}. By default, an
391Emacs will look for its dump state in a file named 391installed Emacs will look for its dump state in a file named
392@file{@var{emacs}.pdmp} in the directory of the executable, where 392@file{@var{emacs}.pdmp} in the directory where the Emacs installation
393@var{emacs} is the name of the Emacs executable file, normally just 393puts the architecture-dependent files; the variable
394@file{emacs}. However, if you rename or move the dump file to a 394@code{exec-directory} holds the name of that directory. @var{emacs}
395different place, you can use this option to tell Emacs where to find 395is the name of the Emacs executable file, normally just @file{emacs}.
396(When you invoke Emacs from the @file{src} directory where it was
397built without installing it, it will look for the dump file in the
398directory of the executable.) If you rename or move the dump file to
399a different place, you can use this option to tell Emacs where to find
396that file. 400that file.
397@end table 401@end table
398 402