[Top][All Lists]

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

Re: Default emacs init file location confusion

From: Eli Zaretskii
Subject: Re: Default emacs init file location confusion
Date: Tue, 07 Jan 2020 18:12:44 +0200

> From: Robert Pluim <address@hidden>
> Cc: Eli Zaretskii <address@hidden>,  Elias Mårtenson
>  <address@hidden>,
>   emacs-devel <address@hidden>
> Date: Tue, 07 Jan 2020 16:26:52 +0100
> Lisp Backtrace:
> "make-directory-internal" (0xffffb498)
> "files--ensure-directory" (0xffffb7c0)
> "make-directory" (0xffffbb50)
> "locate-user-emacs-file" (0xffffbed0)
> 0xf4ce7b70 PVEC_COMPILED
> "funcall" (0xffffc1a0)
> "eval" (0xffffc2f8)
> "custom-reevaluate-setting" (0xffffc5f8)
> "mapc" (0xffffc710)
> "command-line" (0xffffd0c8)
> "normal-top-level" (0xffffd560)
> 'locate-user-emacs-file' says:
>        ;; Make sure `user-emacs-directory' exists,
>        ;; unless we're in batch mode or dumping Emacs.

Thanks, but how did user-emacs-directory get set to ~/.config/emacs if
that directory didn't exist to begin with?  The code in startup.el

    (setq user-emacs-directory
          (startup--xdg-or-homedot startup--xdg-config-home-emacs nil))

and startup--xdg-or-homedot is supposed not to look in ~/.config
unless ~/.config/emacs exists and is a directory.  Or what am I

In any case, the right place to fix this is in startup.el, where we
compute the value of user-emacs-directory.

reply via email to

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