GNU bug report logs - #583
Use XDG basedir spec for configuration files?

Previous Next

Package: emacs;

Reported by: ferkiwi+a <at> gmail.com

Date: Mon, 21 Jul 2008 07:05:06 UTC

Severity: wishlist

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Forwarded to http://lists.gnu.org/archive/html/emacs-devel/2013-10/msg00637.html

Full log


View this message in rfc822 format

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 583 <at> debbugs.gnu.org
Subject: bug#583: [PATCH] Implement XDG Base Directory specification for user-emacs-directory
Date: Sat, 31 Aug 2019 18:24:40 -0700
[Message part 1 (text/plain, inline)]
[Responding belatedly to a 2019-07-28 review that I missed, as I was looking for 
reviews in Bug#583 instead of in the emacs-devel archive. Sorry about that.]

> the test which describes in detail how Emacs finds the init
> file should be in the section by that name; otherwise it makes no
> sense to have that section in the first place.  The "Init File"
> section should just mention the possible places and refer to that
> other section for the details.

I gave it a shot by installing the first attached patch, which also fixes a few 
other confusions and/or inaccuracies that I spotted.

The documentation also needs to be updated to replace ~/.emacs.d, either with 
~/.config/emacs or with something more general, in places where the 
documentation refers to the value of user-emacs-directory. That should be fairly 
mechanical, and can wait until we have the details nailed down.

>> >  (defconst user-emacs-directory
> ...
> Can this be a defconst?

It's been a defconst ever since it was added to Emacs in 2007. However, the 
manual has always said it's a variable and there are quite a few uses of (setq 
user-emacs-directory ...) in the wild, so I installed the second attached patch 
to make it a defvar.

I think the other issues in the review were addressed earlier.
[0001-Improve-documentation-for-recent-XDG-related-changes.patch (text/x-patch, attachment)]
[0002-Make-user-emacs-directory-a-variable.patch (text/x-patch, attachment)]

This bug report was last modified 5 years and 313 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.