Subject: bug#583: Use XDG basedir spec for configuration files?

From: Glenn Morris <[email-masked]>
Date: Thu, 29 Aug 2019 14:30:54 -0400

BTW, I think the handling of user-emacs-directory is buggy:

rm -rf /tmp/foo
mkdir -p /tmp/foo/.config/emacs
HOME=/tmp/foo emacs

Now:
user-init-file         -> /tmp/foo/.config/emacs/init
user-emacs-directory   -> ~/.emacs.d/

I guess user-emacs-directory is being set at build time, not run time.