diff options
author | Nikolay Kudryavtsev <nikolay.kudryavtsev@gmail.com> | 2021-05-01 15:27:21 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2021-05-02 13:15:50 +0300 |
commit | 65fe1777e6e27869e8216ec944df2821f417c3e4 (patch) | |
tree | abbdc1414f4147cb90b59c569a5022ba14099a17 /lisp/emacs-lisp | |
parent | e5b93f6c1487d5ff3dbc03cb6feb4bdaef47990a (diff) | |
download | emacs-65fe1777e6e27869e8216ec944df2821f417c3e4.tar.gz emacs-65fe1777e6e27869e8216ec944df2821f417c3e4.tar.bz2 emacs-65fe1777e6e27869e8216ec944df2821f417c3e4.zip |
Don't use pdumper-stats with unexec
* lisp/emacs-lisp/bytecomp.el (byte-compile-refresh-preloaded): Check if
pdumper-stats is bound before using it.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r-- | lisp/emacs-lisp/bytecomp.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el index 9be54ca4f5e..e93cee99249 100644 --- a/lisp/emacs-lisp/bytecomp.el +++ b/lisp/emacs-lisp/bytecomp.el @@ -5311,7 +5311,8 @@ already up-to-date." "Reload any Lisp file that was changed since Emacs was dumped. Use with caution." (let* ((argv0 (car command-line-args)) - (emacs-file (or (cdr (nth 2 (pdumper-stats))) + (emacs-file (or (and (fboundp 'pdumper-stats) + (cdr (nth 2 (pdumper-stats)))) (executable-find argv0)))) (if (not (and emacs-file (file-exists-p emacs-file))) (message "Can't find %s to refresh preloaded Lisp files" argv0) |