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: Default emacs init file location confusion Date: Wed, 08 Jan 2020 12:05:57 +0200 Message-ID: <539DBEA2-E758-4CB0-B886-F908CF0525B6@gnu.org> References: <83y2ukc55g.fsf@gnu.org> <85C8025D-ACFD-4DEB-B030-E46B3109323E@gnu.org> <83lfqjckjn.fsf@gnu.org> <83blrfci4q.fsf@gnu.org> <837e23chdm.fsf@gnu.org> <834kx7cgmh.fsf@gnu.org> <87tv56bjop.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="238381"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: K-9 Mail for Android Cc: "Mingde \(Matthew\) Zeng" , smartlitchi@gmail.com, =?ISO-8859-1?Q?Elias_M=E5rtenson?= To: emacs-devel@gnu.org,Robert Pluim Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jan 08 11:06:57 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.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 1ip8Ef-000hVy-Om for ged-emacs-devel@m.gmane-mx.org; Wed, 08 Jan 2020 11:06:45 +0100 Original-Received: from localhost ([::1]:41284 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ip8Ee-0004N6-CI for ged-emacs-devel@m.gmane-mx.org; Wed, 08 Jan 2020 05:06:44 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33605) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ip8Dz-00030g-QG for emacs-devel@gnu.org; Wed, 08 Jan 2020 05:06:05 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:35710) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ip8Dz-00050z-AY; Wed, 08 Jan 2020 05:06:03 -0500 Original-Received: from [176.12.180.157] (port=34101 helo=[10.212.47.98]) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1ip8Dy-0006e0-2p; Wed, 08 Jan 2020 05:06:02 -0500 In-Reply-To: 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:244108 Archived-At: On January 8, 2020 10:17:21 AM GMT+02:00, Robert Pluim = wrote: > >>>>> On Wed, 08 Jan 2020 09:22:12 +0200, Eli Zaretskii > said: >=20 > Eli> Here's my proposal: >=20 > Eli> =2E If neither the old nor the new (XDG compliant) directory > exists, default to ~/=2Eemacs=2Ed (it will be created, as we did before) > Eli> =2E If both the old and the new directory exist, use ~/=2Eemacs= =2Ed > Eli> =2E Otherwise use the XDG compliant directory >=20 > Eli> This will make the new XDG compliant directory an opt-in feature: > Eli> users who want that will have to create ~/=2Econfig/emacs, move > there > Eli> the contents of ~/=2Eemacs=2Ed, and then delete the latter, in orde= r > to > Eli> have Emacs use the XDG convention=2E >=20 > Except that now the issue becomes "I created ~/=2Econfig/emacs, and > emacs doesn=CA=BCt use it"=2E=20 Which is completely consistent with making this feature opt-in, don't you = agree? And NEWS will tell so=2E > hence I=CA=BCd prefer: >=20 > Use the XDG directory if it exists, but don=CA=BCt create > it=2E Otherwise, use ~/=2Eemacs=2Ed (and create it if necessary)= =2E This is IMO a much more invasive change, and therefore inappropriate for t= he release branch=2E The current code relies on user-emacs-directory to ex= ist=2E Lifting this restriction should be a separate change, and we should= do it on master=2E > Eli> I don't like to pop up questions at startup, brcause users don't > Eli> expect such questions, and because people who would like to keep > their > Eli> existing ~/=2Eemacs=2Ed and yet use ~/=2Econfig for other programs = will > need > Eli> to respond to this prompt every time they start Emacs=2E >=20 > I agree about the pop ups, but the prompt would only be if > ~/=2Econfig/emacs existed, not ~/=2Econfig, so deleting it would stop th= e > prompt=2E The same people who won't know they should delete =2Eemacs=2Ed will also f= ail to know about deleting =2Econfig/emacs=2E