diff options
| author | Eli Zaretskii | 2019-01-26 12:08:56 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2019-01-26 12:08:56 +0200 |
| commit | a7974933dd818194de3c9387b95dbd122bcf506c (patch) | |
| tree | 313d57e1561420c541114795150193c4c199570b /doc | |
| parent | bf4099b23738f0a481fb6020337039d84506fda4 (diff) | |
| download | emacs-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.texi | 16 |
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 |
| 390 | Load the dumped Emacs state from the named @var{file}. By default, | 390 | Load the dumped Emacs state from the named @var{file}. By default, an |
| 391 | Emacs will look for its dump state in a file named | 391 | installed 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 | 393 | puts 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} |
| 395 | different place, you can use this option to tell Emacs where to find | 395 | is the name of the Emacs executable file, normally just @file{emacs}. |
| 396 | (When you invoke Emacs from the @file{src} directory where it was | ||
| 397 | built without installing it, it will look for the dump file in the | ||
| 398 | directory of the executable.) If you rename or move the dump file to | ||
| 399 | a different place, you can use this option to tell Emacs where to find | ||
| 396 | that file. | 400 | that file. |
| 397 | @end table | 401 | @end table |
| 398 | 402 | ||