emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Fix `early-init-file' value when file is missing


From: Eli Zaretskii
Subject: Re: [PATCH] Fix `early-init-file' value when file is missing
Date: Wed, 13 Feb 2019 19:56:59 +0200

> From: Radon Rosborough <address@hidden>
> Date: Tue, 12 Feb 2019 18:36:20 -0800
> Cc: emacs-devel <address@hidden>
> 
> > if you can come up with such a safe change, I will of course gladly
> > accept it.
> 
> It is attached.

Thanks.  This still uses the indirect evidence of the second function
argument.

Maybe all of this will be much simpler if in this fragment:

  ;; Load the early init file, if found.
  (load-user-init-file
   (lambda ()
     (expand-file-name
      "early-init"
      (file-name-as-directory
       (concat "~" init-file-user "/.emacs.d")))))

we replace "early-init" with "early-init.el"?  Does that solve the
problem?  If so, do you see any downsides with such a change?  We
didn't advertise the support for "~/.emacs.d/early-init", with no
extension.

WDYT?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]