emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 9ad3fce4a5: ; Avoid byte-compiler warning in startup.el


From: Eli Zaretskii
Subject: master 9ad3fce4a5: ; Avoid byte-compiler warning in startup.el
Date: Sat, 19 Nov 2022 07:44:35 -0500 (EST)

branch: master
commit 9ad3fce4a5c902a2c23b0ef2e7a8a5cae5cc3876
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>

    ; Avoid byte-compiler warning in startup.el
    
    * lisp/startup.el (startup--load-user-init-file): Avoid
    byte-compiler warnings about 'comp-eln-to-el-h'.  (Bug#59334)
---
 lisp/startup.el | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/lisp/startup.el b/lisp/startup.el
index d7d8743336..5e0a47d3f8 100644
--- a/lisp/startup.el
+++ b/lisp/startup.el
@@ -1076,7 +1076,10 @@ init-file, or to a default value if loading is not 
possible."
                       (sit-for 1))
                     (setq user-init-file source)))
               ;; Else, perhaps the user init file was compiled
-              (when (equal (file-name-extension user-init-file) "eln")
+              (when (and (equal (file-name-extension user-init-file) "eln")
+                         ;; The next test is for builds without native
+                         ;; compilation support or builds with unexec.
+                         (boundp 'comp-eln-to-el-h))
                 (if-let (source (gethash (file-name-nondirectory 
user-init-file)
                                          comp-eln-to-el-h))
                     ;; source exists or the .eln file would not load



reply via email to

[Prev in Thread] Current Thread [Next in Thread]