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 09:22:12 +0200 Message-ID: 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="168852"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: K-9 Mail for Android Cc: Robert Pluim , smartlitchi@gmail.com, emacs-devel To: emacs-devel@gnu.org, =?ISO-8859-1?Q?Elias_M=E5rtenson?= , "Mingde (Matthew) Zeng" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jan 08 08:26:02 2020 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 1ip5fc-0009Fm-Bi for ged-emacs-devel@m.gmane.org; Wed, 08 Jan 2020 08:22:24 +0100 Original-Received: from localhost ([::1]:39004 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ip5fb-0005sR-7x for ged-emacs-devel@m.gmane.org; Wed, 08 Jan 2020 02:22:23 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51695) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ip5fV-0005s8-TD for emacs-devel@gnu.org; Wed, 08 Jan 2020 02:22:18 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:34130) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ip5fV-0001fG-P7; Wed, 08 Jan 2020 02:22:17 -0500 Original-Received: from [176.12.180.157] (port=34055 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 1ip5fV-00015N-0S; Wed, 08 Jan 2020 02:22:17 -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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:244106 Archived-At: On January 8, 2020 7:33:20 AM GMT+02:00, "Elias M=C3=A5rtenson" wrote: >=20 > Given the large number of people who seem to have run into the same > issue, > most of which are users who have years if not decades of Emacs > experience > shows that something should be done before the release of 27=2E >=20 > Having thought about it some more, I came up with this proposal: Emacs > could check if both directories exist, and if so, provide an > interactive > choice for the user to pick which one to use=2E If the user don't want > to > have to answer this question every time Emacs starts up, they can > delete > one of the directories=2E Here's my proposal: =2E If neither the old nor the new (XDG compliant) directory exists, def= ault to ~/=2Eemacs=2Ed (it will be created, as we did before) =2E If both the old and the new directory exist, use ~/=2Eemacs=2Ed =2E Otherwise use the XDG compliant directory This will make the new XDG compliant directory an opt-in feature: users wh= o want that will have to create ~/=2Econfig/emacs, move there the contents= of ~/=2Eemacs=2Ed, and then delete the latter, in order to have Emacs use = the XDG convention=2E I don't like to pop up questions at startup, brcause users don't expect su= ch questions, and because people who would like to keep their existing ~/= =2Eemacs=2Ed and yet use ~/=2Econfig for other programs will need to respon= d to this prompt every time they start Emacs=2E