[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Implement XDG Base Directory specification for user-emacs-di
From: |
Stefan Monnier |
Subject: |
Re: [PATCH] Implement XDG Base Directory specification for user-emacs-directory |
Date: |
Sun, 09 Jun 2019 14:59:44 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
> I’ve attached my first try at this. At first it was only concerned with
> lisp/startup.el—like ESR’s change—but then I thought it would be even
> nicer to do it at the user-emacs-directory itself.
I think conceptually, this is indeed the better way to go.
Eli's comments already pointed out some technical difficulties you'll
have to overcome, so I'll limit myself to one more comment:
> * lisp/subr.el (user-emacs-directory): Use "$XDG_CONFIG_HOME/emacs/"
> if XDG_CONFIG_HOME is set and has an "emacs/" subdirectory.
> Otherwise, try "~/.config/emacs/" before falling back to
> "~/.emacs.d/".
I think for simple reasons of backward compatibility, if both
"$XDG_CONFIG_HOME/emacs/" and "~/.emacs.d/" exist, we should use
"~/.emacs.d/".
Stefan
- Re: [Emacs-diffs] master d68ed15: Implement and document XDG-style startup files under ~/.config., Eli Zaretskii, 2019/06/02
- [PATCH] Implement XDG Base Directory specification for user-emacs-directory (was: [Emacs-diffs] master d68ed15: Implement and document XDG-style startup files under ~/.config.), Amin Bandali, 2019/06/09
- Re: [PATCH] Implement XDG Base Directory specification for user-emacs-directory (was: [Emacs-diffs] master d68ed15: Implement and document XDG-style startup files under ~/.config.), Eli Zaretskii, 2019/06/09
- Re: [PATCH] Implement XDG Base Directory specification for user-emacs-directory,
Stefan Monnier <=
- Re: [PATCH] Implement XDG Base Directory specification for user-emacs-directory, Eli Zaretskii, 2019/06/09
- Re: [PATCH] Implement XDG Base Directory specification for user-emacs-directory, Noam Postavsky, 2019/06/09
- Re: [PATCH] Implement XDG Base Directory specification for user-emacs-directory, Eli Zaretskii, 2019/06/10
- Re: [PATCH] Implement XDG Base Directory specification for user-emacs-directory, Noam Postavsky, 2019/06/10
- Re: [PATCH] Implement XDG Base Directory specification for user-emacs-directory, Lars Ingebrigtsen, 2019/06/10
- Re: [PATCH] Implement XDG Base Directory specification for user-emacs-directory, Eli Zaretskii, 2019/06/10
Re: [PATCH] Implement XDG Base Directory specification for user-emacs-directory (was: [Emacs-diffs] master d68ed15: Implement and document XDG-style startup files under ~/.config.), Stefan Kangas, 2019/06/13