From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.devel Subject: Re: Default emacs init file location confusion Date: Wed, 08 Jan 2020 18:25:10 +0100 Message-ID: References: <83blrfci4q.fsf@gnu.org> <837e23chdm.fsf@gnu.org> <834kx7cgmh.fsf@gnu.org> <87tv56bjop.fsf@gmail.com> <539DBEA2-E758-4CB0-B886-F908CF0525B6@gnu.org> <83pnfuaqj3.fsf@gnu.org> <83imllc3iq.fsf@gnu.org> <87eew9q4rt.fsf@windriver.com> <83h815c26h.fsf@gnu.org> 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="187539"; mail-complaints-to="usenet@blaine.gmane.org" Cc: matthewzmd@gmail.com, smartlitchi@gmail.com, lokedhs@gmail.com, monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jan 08 18:26:36 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 1ipF5f-000OPB-NK for ged-emacs-devel@m.gmane-mx.org; Wed, 08 Jan 2020 18:25:55 +0100 Original-Received: from localhost ([::1]:47228 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ipF5e-0002ji-IA for ged-emacs-devel@m.gmane-mx.org; Wed, 08 Jan 2020 12:25:54 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47889) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ipF54-0002FT-AD for emacs-devel@gnu.org; Wed, 08 Jan 2020 12:25:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ipF50-0002d1-JO for emacs-devel@gnu.org; Wed, 08 Jan 2020 12:25:18 -0500 Original-Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]:43699) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ipF50-0002bh-B1; Wed, 08 Jan 2020 12:25:14 -0500 Original-Received: by mail-wr1-x42d.google.com with SMTP id d16so4225374wre.10; Wed, 08 Jan 2020 09:25:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:gmane-reply-to-list:date:in-reply-to :message-id:mime-version:content-transfer-encoding; bh=xFxAoWbkdtOrhwfRODuXa2tGQtfIf1IwNZ4mbCc5dkQ=; b=UGTFvMjI8mXSN0K1FG7SbeSgBHiWUu7Z/Q0++TT+WO8WLnz6i+uDJBCxfocEM5iNFY gzu9rf44zLDacXXO6GUaC2U1wUeDlVZgPrsqfLxLKJgMQv/k6FFZ7tJ8kY6x8nj0g/d3 43tPR6uQUeuKGA4XJPHeyi2ZpR95vRiKimcztkC6r82LwPnpWVCmkF27TKQG82v4DlAW Gb87zony1/P7S4Ba8RsLkGCOUbKc2q+E5n6gU3qeRBan5twtHAhz/DPkmYhSHRV3NaVO irK0bsmTXAd7AmfpOWk3WKaeBz63yYCwKIgYO36idjiNPriSXvE3vVx/R0v8kCX0uHms 8JaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references :gmane-reply-to-list:date:in-reply-to:message-id:mime-version :content-transfer-encoding; bh=xFxAoWbkdtOrhwfRODuXa2tGQtfIf1IwNZ4mbCc5dkQ=; b=kP834kOKpU+7ZI6Nml4iE9mpNs7SL3xvO4suFldCnmrFuGiDAdK4ki+mjivellRJeI T/5Rj7VCdSP0Ds4+rfNR0WnVAjgYRlO6Uul4CLWxMCvUnG9DQINlse0Nk95TGyM5Pg7u F26To+Tk08mGucvC/OfJXKkDh3A9RHiAurELo1YIKGviEcpWVDRxeruSLY2GWF3bgNpZ dN3Qwo1d/4jthxBpLvRDhTL7tfJCZej1tokvzTwIBTs2cJdVpNq048TD+HLVH8E+JnRA w8NQAslDfj+jjo9nOy9lF8wg+aS4lmDgr5a448xxqEnUKTVZuSqKs/qwTJdEbQidqo1g A6Nw== X-Gm-Message-State: APjAAAVLQubmMPblmSwK3UW247IKf4bvSFy8bp+71wO/nyUVLiECvC99 spZ64HVZRb+lnX47FSi9ZUtVbNiT X-Google-Smtp-Source: APXvYqzr+Q5065C/wTy+btuI1q0dn4wewKMqbgRCTqoBXyMOv0qO2aN+SSFUuwVqLEHo2G3oLUPTwA== X-Received: by 2002:adf:ebd0:: with SMTP id v16mr6039721wrn.146.1578504312738; Wed, 08 Jan 2020 09:25:12 -0800 (PST) Original-Received: from rpluim-mac ([149.5.228.1]) by smtp.gmail.com with ESMTPSA id m21sm4653112wmi.27.2020.01.08.09.25.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jan 2020 09:25:11 -0800 (PST) Gmane-Reply-To-List: yes In-Reply-To: <83h815c26h.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 08 Jan 2020 19:01:42 +0200") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::42d 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:244135 Archived-At: >>>>> On Wed, 08 Jan 2020 19:01:42 +0200, Eli Zaretskii said: >> From: Robert Pluim >> Cc: Eli Zaretskii , Stefan Monnier >> , smartlitchi@gmail.com, lokedhs@gmail.c= om, >> emacs-devel@gnu.org >> Date: Wed, 08 Jan 2020 17:49:30 +0100 >>=20 >> >>>>> On Wed, 08 Jan 2020 11:41:58 -0500, "Mingde (Matthew) Zeng" said: >>=20 >> >> A directory ~/.config/emacs should not exist unless the user >> >> wants to switch to using it, and preferring an existing ~/.emacs.d >> >> even if ~/.config/emacs does exist will protect those who somehow >> >> create the latter by accident. >>=20 Mingde> Sounds good to me. >>=20 >> That sounds like my earlier patch Eli> It's close. I'd like us to prefer ~/.emacs.d, if it exists, even = if Eli> ~/.config/emacs also exists. I don't think your patch did that. = Am I Eli> wrong? It didn=CA=BCt indeed. However, you said earlier: Eli> This will make the new XDG compliant directory an opt-in Eli> feature: users who want that will have to create Eli> ~/.config/emacs, move there the contents of ~/.emacs.d, and Eli> then delete the latter, in order to have Emacs use the XDG Eli> convention. If we prefer ~/.config/emacs if it exists, then people who read NEWS and want to try out the XDG stuff can just copy ~/.emacs.d to ~/.config/emacs and would not have to delete .emacs.d. If they then change their mind they can simply delete ~/.config/emacs. I don=CA=BCt think it=CA=BCs likely that people will accidentally create ~/.config/emacs, so preferring it should not cause any surprises (plus I feel that 'use x if it exists, else use y' is less prone to confusion than 'use x if it exists unless y exists'). Robert