From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] master a4144af 1/2: Prefer ~/.config/emacs to ~/.emacs.d if neither exists Date: Sun, 01 Sep 2019 09:05:09 -0400 Message-ID: References: <83ftlial33.fsf@gnu.org> <44c7794c-29a7-65be-0838-f84807eba9bc@cs.ucla.edu> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="204565"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: Eli Zaretskii , emacs-devel@gnu.org To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Sep 01 15:05:27 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 1i4PXr-000r62-1h for ged-emacs-devel@m.gmane.org; Sun, 01 Sep 2019 15:05:27 +0200 Original-Received: from localhost ([::1]:57384 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i4PXp-0005fp-91 for ged-emacs-devel@m.gmane.org; Sun, 01 Sep 2019 09:05:25 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59238) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i4PXi-0005dg-55 for emacs-devel@gnu.org; Sun, 01 Sep 2019 09:05:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i4PXg-0004Ih-Fe for emacs-devel@gnu.org; Sun, 01 Sep 2019 09:05:17 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:58506) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1i4PXd-0004Cx-Ta; Sun, 01 Sep 2019 09:05:14 -0400 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 2F1C68116F; Sun, 1 Sep 2019 09:05:12 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id DA03080E0B; Sun, 1 Sep 2019 09:05:10 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1567343110; bh=UivRzHFiiQ0O4ckdIaId1N05XMXC4UpN8bOCVq38Lfs=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=f1wlK1SSdbsHk21Komoogm4VENvWppPUALRPJconkNo0QsncvKlijVzFF/di+7AaG DFblB2i7isrFGSR1iD1e8zXkQDHe53nTPnA5aFQ7+GKM2qm80EVVE00FAxWP9vyNIy UaEAgggnV3GDneIHzMtRF1PCvrF9Ndpwm4zoywQ6H+A08MuU4VK2Koi53CrDyQAIA9 1hGQ1RDctxD9kEOQ7Ay68xddGb54vV5CJgiBEbZthxn+w5bw/zG+TKP6+sevzfkXaj LcibPD7SzI/sGd2OwARMuScz1KOCSYhY2CzAKjGApJ1pdawoJh1mZeZZEQShzcYBsL PSt3FDkYP6s5Q== Original-Received: from pastel (unknown [45.72.249.235]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 9A63F12008D; Sun, 1 Sep 2019 09:05:10 -0400 (EDT) In-Reply-To: <44c7794c-29a7-65be-0838-f84807eba9bc@cs.ucla.edu> (Paul Eggert's message of "Sat, 31 Aug 2019 23:25:26 -0700") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 132.204.25.50 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:239751 Archived-At: > (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; Your terminology presumes the conclusion ;-) I'd call them differently: There's the XDG-convention and then there's the native-convention. > (3) both directories are present, where I recall that we discussed that > Emacs should use the new-convention directory; and FWIW, I argued for the other choice but as long as ~/.config/emacs is never automatically created, it's probably OK. Basically the argument is "if the user consciously chose to use the weird XDG setup, then let's obey those wishes". > (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. I don't think (3) and (4) need to be linked. Making (3) prefer ~/.config/emacs basically means we're on the path to deprecating ~/.emacs.d. I don't think I'm ready for that. BTW, ~/.config/emacs/init.el seems to be an exception in the XDG space because in my experience all those ~/.config files are normally expected to be manipulated via GUI options, rather than by editing them directly. Stefan