From: Eli Zaretskii Date: Sat, 4 Jan 2025 12:44:10 +0000 (+0200) Subject: Update eln-cache when --init-directory is used X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f12f7b31ffa289c18ce04f2a254aadaccf133150;p=emacs.git 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) --- 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)))