[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 65fe177: Don't use pdumper-stats with unexec
From: |
Eli Zaretskii |
Subject: |
master 65fe177: Don't use pdumper-stats with unexec |
Date: |
Sun, 2 May 2021 06:17:38 -0400 (EDT) |
branch: master
commit 65fe1777e6e27869e8216ec944df2821f417c3e4
Author: Nikolay Kudryavtsev <nikolay.kudryavtsev@gmail.com>
Commit: Eli Zaretskii <eliz@gnu.org>
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 9be54ca..e93cee9 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)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 65fe177: Don't use pdumper-stats with unexec,
Eli Zaretskii <=