From 9abf8228f55894d62621edc1e5467467e667e1bc Mon Sep 17 00:00:00 2001 From: Nikolay Kudryavtsev Date: Sat, 1 May 2021 15:27:21 +0300 Subject: [PATCH] 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. --- lisp/emacs-lisp/bytecomp.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el index 9be54ca4f5..e93cee9924 100644 --- a/lisp/emacs-lisp/bytecomp.el +++ b/lisp/emacs-lisp/bytecomp.el @@ -5311,7 +5311,8 @@ byte-compile-refresh-preloaded "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) -- 2.31.1.windows.1