]> git.eshelyaron.com Git - emacs.git/commitdiff
Update eln-cache when --init-directory is used
authorEli Zaretskii <eliz@gnu.org>
Sat, 4 Jan 2025 12:44:10 +0000 (14:44 +0200)
committerEshel Yaron <me@eshelyaron.com>
Sat, 4 Jan 2025 20:58:49 +0000 (21:58 +0100)
* 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)

(cherry picked from commit b63ba892f9b28062a4ece9db7e4abd79a88ceea6)

lisp/startup.el

index 847d5ca4dd3a8edb46eedbcfb6b4bad1af5d30cc..ebd6aade1b6fa796a08d7dde80754f50ed3cde8a 100644 (file)
@@ -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)))