On Wed, Sep 25, 2024 at 06:54:14PM +0100, Gavin Smith wrote:
> Could we consider ignoring the XDG_DATA_DIRS and XDG_CONFIG_DIRS part
> of the specification?  (It seems that XDG_DATA_HOME and XDG_CONFIG_HOME
> are the part that people really care about.)
> 
> We could try discussing with developers of other GNU packages what
> they do about these variables, and how the XDG specification works
> with the GNU Coding Standards and existing practice.
> 

Emacs appears only to check XDG_CONFIG_HOME and not XDG_CONFIG_DIRS,
according to

https://www.gnu.org/software/emacs/manual/html_node/emacs/Find-Init.html:

> Emacs can also look in an XDG-compatible location for init.el, the
> default is the directory ~/.config/emacs. This can be overridden by
> setting XDG_CONFIG_HOME in your environment, its value replaces ~/.config
> in the name of the default XDG init file. However ~/.emacs.d, ~/.emacs,
> and ~/.emacs.el are always preferred if they exist, which means that
> you must delete or rename them in order to use the XDG location.

No mention of XDG_CONFIG_DIRS.

"XDG-compatible" is a nice turn of phrase, slightly different to
"XDG-compliant".


Reply via email to