From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] master a4144af 1/2: Prefer ~/.config/emacs to ~/.emacs.d if neither exists Date: Sat, 31 Aug 2019 23:25:26 -0700 Organization: UCLA Computer Science Department Message-ID: <44c7794c-29a7-65be-0838-f84807eba9bc@cs.ucla.edu> References: <83ftlial33.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="243914"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Sep 01 08:26:18 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 1i4JJY-0011CC-1w for ged-emacs-devel@m.gmane.org; Sun, 01 Sep 2019 08:26:16 +0200 Original-Received: from localhost ([::1]:48030 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i4JJW-0000Hp-5U for ged-emacs-devel@m.gmane.org; Sun, 01 Sep 2019 02:26:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42356) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i4JIr-0000F7-Fp for emacs-devel@gnu.org; Sun, 01 Sep 2019 02:25:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i4JIp-0003gP-VP for emacs-devel@gnu.org; Sun, 01 Sep 2019 02:25:32 -0400 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:34072) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1i4JIo-0003cr-5i; Sun, 01 Sep 2019 02:25:30 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 5402B16008F; Sat, 31 Aug 2019 23:25:28 -0700 (PDT) Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id YLtjHrqrkUBZ; Sat, 31 Aug 2019 23:25:27 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 4ED191600C2; Sat, 31 Aug 2019 23:25:27 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id SRiCd-wlSINF; Sat, 31 Aug 2019 23:25:27 -0700 (PDT) Original-Received: from [192.168.1.9] (cpe-23-242-74-103.socal.res.rr.com [23.242.74.103]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 2200C16008F; Sat, 31 Aug 2019 23:25:27 -0700 (PDT) In-Reply-To: <83ftlial33.fsf@gnu.org> Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 131.179.128.68 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:239741 Archived-At: Eli Zaretskii wrote: > Why should we force this convention on platforms other than GNU/Linux? We're not forcing the new convention on any platform, as people who prefer the old convention can still use it and Emacs will continue to respect that convention on all platforms. That is, users who prefer the old convention won't need to do anything special to their home directories that use the old convention; they can just run Emacs as before and it will work as before. The issue came up when I was testing a fix for the bug Glenn reported . There are four cases when Emacs starts up: (1) only ~/.config/emacs (the new-convention directory) is present, where Emacs obviously should use that; (2) only ~/.emacs.d (the old-convention directory) is present, where Emacs obviously should use that; (3) both directories are present, where I recall that we discussed that Emacs should use the new-convention directory; and (4) neither directory is present, which we did not discuss explicitly but I reasoned by analogy with (3) that Emacs should also prefer the new convention when either the old or the new will do. It would be quite odd if case (4) were done the opposite way, because then Emacs would prefer the new convention for case (3) and the old convention for case (4), and this mixup would likely cause more confusion than it would cure. Whatever we decide about case (4) should be independent of platform, since some users move config files between GNUish and non-GNUish platforms or share these files via network protocols or run Emacs on both GNUish and non-GNUish platforms, and it would cause unnecessary trouble for users if Emacs behaved differently on GNU/Linux versus other platforms.