From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Implement XDG Base Directory specification for user-emacs-directory Date: Tue, 02 Jul 2019 20:26:37 +0300 Message-ID: <83woh0cppu.fsf@gnu.org> References: <20190525172356.30070.65317@vcs0.savannah.gnu.org> <20190525172357.86D4F207F5@vcs0.savannah.gnu.org> <835zpnv1o4.fsf@gnu.org> <87lfybw8cd.fsf_-_@fencepost.gnu.org> <83d0jmbmcs.fsf@gnu.org> <8336khbeas.fsf@gnu.org> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="8707"; mail-complaints-to="usenet@blaine.gmane.org" Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Noam Postavsky Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 02 22:17:39 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hiPDe-0001C8-GX for ged-emacs-devel@m.gmane.org; Tue, 02 Jul 2019 22:17:38 +0200 Original-Received: from localhost ([::1]:56916 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hiOyV-00028d-M1 for ged-emacs-devel@m.gmane.org; Tue, 02 Jul 2019 16:01:59 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33999) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hiMYd-00056N-1y for emacs-devel@gnu.org; Tue, 02 Jul 2019 13:27:08 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:52735) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hiMYV-00017h-FI; Tue, 02 Jul 2019 13:27:00 -0400 Original-Received: from [176.228.60.248] (port=3509 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hiMYN-0004HU-Gm; Tue, 02 Jul 2019 13:26:55 -0400 In-reply-to: (message from Noam Postavsky on Tue, 2 Jul 2019 12:55:21 -0400) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:238305 Archived-At: > From: Noam Postavsky > Date: Tue, 2 Jul 2019 12:55:21 -0400 > Cc: Stefan Monnier , Emacs developers > > > > > I agree, but maybe we should also have an opt-in defcustom to prefer > > > > the other way around. IME, sometimes ~/.emacs.d is created due to > > > > some random experiments people do, which are unrelated to their > > > > routine operations, or due to some (buggy) packages that hard-code > > > > ~/.emacs.d. We should give such users a fire escape. > > > > > > But where would the defcustom setting be read from? Seems like a bit > > > of a bootstrapping problem. > > > > You are right, but then I think this feature will be an endless > > source of confusion and bug reports. Sigh... > > Perhaps we could revisit Bug#15539 which allows setting > user-emacs-directory via EMACS_USER_DIRECTORY environment variable? It > was marked as wontfix, mainly (as far as I can tell) based on the > potential bugs that letting user-emacs-directory be different than > $HOME/.emacs.d could bring, but it looks like we've basically decided > that is acceptable here anyway. Maybe use an environment variable only to override the default preference order between XDG and ~/.emacs.d, i.e. as that "fire escape" I had in mind?