From f12f7b31ffa289c18ce04f2a254aadaccf133150 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 4 Jan 2025 14:44:10 +0200 Subject: [PATCH] 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 . (Bug#75022) (cherry picked from commit b63ba892f9b28062a4ece9db7e4abd79a88ceea6) --- lisp/startup.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lisp/startup.el b/lisp/startup.el index 847d5ca4dd3..ebd6aade1b6 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))) -- 2.39.5