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, 23 Jul 2019 17:36:30 +0300 Message-ID: <83r26gq0lt.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> <83woh0cppu.fsf@gnu.org> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="90504"; mail-complaints-to="usenet@blaine.gmane.org" Cc: emacs-devel@gnu.org, npostavs@gmail.com, monnier@iro.umontreal.ca To: Amin Bandali Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 23 16:36:53 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 1hpvuO-000NMX-PD for ged-emacs-devel@m.gmane.org; Tue, 23 Jul 2019 16:36:52 +0200 Original-Received: from localhost ([::1]:43012 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hpvuN-0006dT-ME for ged-emacs-devel@m.gmane.org; Tue, 23 Jul 2019 10:36:51 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52668) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hpvuG-0006dL-BI for emacs-devel@gnu.org; Tue, 23 Jul 2019 10:36:45 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:55288) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hpvuG-00014m-1U; Tue, 23 Jul 2019 10:36:44 -0400 Original-Received: from [176.228.60.248] (port=2251 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hpvuF-0000Tu-3o; Tue, 23 Jul 2019 10:36:43 -0400 In-reply-to: <83woh0cppu.fsf@gnu.org> (message from Eli Zaretskii on Tue, 02 Jul 2019 20:26:37 +0300) 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:238840 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? Amin, are you still working on this? If so, do you have an updated patch, which takes in account the review comments? If not, can we please get back to fixing this? I'd like to fix the possible breakage that the original changeset might cause. TIA