emacs-diffs
[Top][All Lists]
Advanced

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

master b63ba892f9b: Update eln-cache when --init-directory is used


From: Eli Zaretskii
Subject: master b63ba892f9b: Update eln-cache when --init-directory is used
Date: Sat, 4 Jan 2025 07:45:10 -0500 (EST)

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

    Update eln-cache when --init-directory is used
    
    * lisp/startup.el (normal-top-level): Update eln-cache after
    'user-emacs-directory' is set by --init-directory.  Patch by
    Jordan Isaacs <jordan@snowytrees.dev>.  (Bug#75022)
---
 lisp/startup.el | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lisp/startup.el b/lisp/startup.el
index 09663f64584..830aec9a09c 100644
--- a/lisp/startup.el
+++ b/lisp/startup.el
@@ -778,6 +778,9 @@ It is the default value of the variable `top-level'."
       (unwind-protect
          (command-line)
 
+        (when (featurep 'native-compile)
+          (startup--update-eln-cache))
+
        ;; Do this again, in case .emacs defined more abbreviations.
        (if default-directory
            (setq default-directory (abbreviate-file-name default-directory)))



reply via email to

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