mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-06 06:20:55 -08:00
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)
This commit is contained in:
parent
5fe7f86367
commit
b63ba892f9
1 changed files with 3 additions and 0 deletions
|
|
@ -778,6 +778,9 @@ It is the default value of the variable `top-level'."
|
||||||
(unwind-protect
|
(unwind-protect
|
||||||
(command-line)
|
(command-line)
|
||||||
|
|
||||||
|
(when (featurep 'native-compile)
|
||||||
|
(startup--update-eln-cache))
|
||||||
|
|
||||||
;; Do this again, in case .emacs defined more abbreviations.
|
;; Do this again, in case .emacs defined more abbreviations.
|
||||||
(if default-directory
|
(if default-directory
|
||||||
(setq default-directory (abbreviate-file-name default-directory)))
|
(setq default-directory (abbreviate-file-name default-directory)))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue