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: Default emacs init file location confusion Date: Tue, 07 Jan 2020 13:41:45 -0500 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> <83zhezb0jw.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="177339"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: rpluim@gmail.com, lokedhs@gmail.com, smartlitchi@gmail.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jan 07 19:42:01 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 1iotnk-000hbZ-5E for ged-emacs-devel@m.gmane.org; Tue, 07 Jan 2020 19:42:00 +0100 Original-Received: from localhost ([::1]:54866 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iotnj-0003AH-2G for ged-emacs-devel@m.gmane.org; Tue, 07 Jan 2020 13:41:59 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58889) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iotnc-00039b-96 for emacs-devel@gnu.org; Tue, 07 Jan 2020 13:41:53 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iotna-0007Pq-QF for emacs-devel@gnu.org; Tue, 07 Jan 2020 13:41:51 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:16114) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iotnY-0007Lk-GG; Tue, 07 Jan 2020 13:41:48 -0500 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id A911F44DB59; Tue, 7 Jan 2020 13:41:47 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 481AC44DB54; Tue, 7 Jan 2020 13:41:46 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1578422506; bh=5gvWtqQ/1QSbhFKkdJJu+mbReGHyMaWuWNWgxr+GZsM=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=joez3hTg6Ykil5FeLnXLb7cOKF9ZhdL9l+7ZTYge4CjNqTev9fu98Gq1WO/t1ySfd HsRZCPPqz+67FJ65R5swVs2yz2DcHQktCF6lKY3TGOV9O5NDZ7Cred5awy0/6AfPHW jnMzn8eyXPPrqkSJPpAw++VS6J1Q4W3WQNY0hxbmZ2iA3MH6f5DyUSIo0DuK1EUdUg LXDNgl+6tSqfT5Y9+7metaKCq/D9fqqjOyV6rs4rUxjbGlIpIKZUL7GFKr+IU6dGDd zDsVk7Y7a15RfEzncPG6QpyKYlgDP2oXg7Qowehz3eAwJ/Gd3NdPqGz5cXF7jZ0XgB X204H7mX3Hc7g== Original-Received: from alfajor (modemcable157.163-203-24.mc.videotron.ca [24.203.163.157]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 12BDF1205E8; Tue, 7 Jan 2020 13:41:46 -0500 (EST) In-Reply-To: <83zhezb0jw.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 07 Jan 2020 20:09:55 +0200") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] 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:244088 Archived-At: >> That's why I originally suggested that if ~/.emacs.d/ exists we should >> use it in preference to ~/.config/emacs/ rather than the reverse. > The issue at hand is what happens when neither of these exists at > startup time. No, there are several questions along the way in the current scenario: 1- when neither exists yet, which one do we choose? 2- if the one we chose doesn't exist yet, when do we create it? 3- if two exist, which one do we choose? 4- should we pay attention to the fact that one of the two is empty? > So your proposal would not have helped here. Not in the first run of Emacs (the one that creates ~/.config/emacs), but it would have helped in the second run (after ~/.emacs.d was created). It's only the second run which misbehaved (w.r.t what the user expected), so it would not have been too late. >> In any case, we should probably be more proactive about the problem: if >> both exist we should emit a clear and visible warning. > Again, that's not the situation we are discussing. It is (for the second run). >> > The way to prevent the above is described in NEWS, btw. >> I think this effect is sufficiently major that we can't just say "you >> should have read the NEWS". > The idea was that very few will want that workaround. I expect that it would/will bite any old timer who moves to a new machine and happens to run `emacs` before installing his config (e.g. because he needs to edit a config file in order to fetch his Emacs config). Stefan