Skip to content

Commit

Permalink
Don't use pdumper-stats with unexec
Browse files Browse the repository at this point in the history
* lisp/emacs-lisp/bytecomp.el (byte-compile-refresh-preloaded): Check if
pdumper-stats is bound before using it.
  • Loading branch information
Nikolay Kudryavtsev authored and Eli-Zaretskii committed May 2, 2021
1 parent e5b93f6 commit 65fe177
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lisp/emacs-lisp/bytecomp.el
Expand Up @@ -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)
Expand Down

0 comments on commit 65fe177

Please sign in to comment.