Commit 3d9a56f0 authored by Eli Zaretskii's avatar Eli Zaretskii

Fix 'early-init-file' value when file is missing

* lisp/startup.el (command-line): Pass 'early-init.el', with
an explicit .el extension, to load-user-init-file.
Reported by Radon Rosborough <> in
parent f390147f
Pipeline #783 passed with stage
in 53 minutes and 45 seconds
......@@ -1167,7 +1167,11 @@ please check its value")
(lambda ()
;; We use an explicit .el extension here to force
;; load-user-init-file to set user-init-file to "early-init.el",
;; with the .el extension, if the file doesn't exist, not just
;; "early-init" without an extension, as it does for ".emacs".
(concat "~" init-file-user "/.emacs.d")))))
(setq early-init-file user-init-file)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment