2

I am getting this error when I start my emacs. It happens even if I comment out my init.el but not when I use the --no-init-file option.

Any thoughts on how to debug this issue? If this is a an upstream issue, do I need to create a Ticket for that?

  • 1
    Presumably --no-init-file just prevents using your init file - any init file you might have somewhere. I don't know why that would be different from having only a commented-out init file. Check whether you might have some other init file, i.e., with one of the other acceptable names. See the Emacs manual, node Init File. – Drew Feb 25 '18 at 16:41
  • 1
    @Nishant same, built from sources: GNU Emacs 27.0.50 (build 1, x86_64-debian-linux-gnu, GTK+ Version 3.18.9) of 2018-02-24 – Manuel Uberti Feb 26 '18 at 11:20
  • 2
    It could be a bug related to the recent eary-init.el changes. – npostavs Feb 26 '18 at 13:37
  • 3
    I've already reported this on the relevant emacs-devel thread: lists.gnu.org/archive/html/emacs-devel/2018-02/msg00532.html. A workaround for now is to set package-enable-at-startup to nil in your early-init-file. – Basil Feb 26 '18 at 15:01
  • 2
    @Nishant I didn't either, but the aforementioned commit, which is causing the Info-default-directory-list errors, introduces one such early-init-file, and setting package-enable-at-startup to nil in this new early-init-file is a workaround for the errors for now, if not for the foreseeable future. See (emacs) Early Init File and the emacs-devel thread I linked. – Basil Feb 26 '18 at 16:02
2

This issue was fixed in commit 2db57579b0 of 2018-03-19 by initialising Info-default-directory-list et al. before loading early-init-file.

Now, package-initialize will either be called automatically after loading early-init-file and before loading user-init-file, or you can manually call it in user-init-file. In the latter case, you should set package-enable-at-startup to nil in early-init-file so as to avoid giving rise to the "Unnecessary call to package-initialize in init file" warning.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.