]> git.eshelyaron.com Git - emacs.git/commitdiff
Don't use pdumper-stats with unexec
authorNikolay Kudryavtsev <nikolay.kudryavtsev@gmail.com>
Sat, 1 May 2021 12:27:21 +0000 (15:27 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sun, 2 May 2021 10:15:50 +0000 (13:15 +0300)
* lisp/emacs-lisp/bytecomp.el (byte-compile-refresh-preloaded): Check if
pdumper-stats is bound before using it.

lisp/emacs-lisp/bytecomp.el

index 9be54ca4f5e89d10f6099ae476ff2c45b1ee9183..e93cee99249f2cb828422aa8128a19df5cb82156 100644 (file)
@@ -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)