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 12:57:53 -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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="217929"; 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, Elias =?windows-1252?Q?M=E5rtenson?= , 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 18:58:15 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 1iot7O-000qZj-A9 for ged-emacs-devel@m.gmane.org; Tue, 07 Jan 2020 18:58:14 +0100 Original-Received: from localhost ([::1]:54382 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iot7M-0000Ty-Uf for ged-emacs-devel@m.gmane.org; Tue, 07 Jan 2020 12:58:12 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50856) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iot7E-0000Nv-SW for emacs-devel@gnu.org; Tue, 07 Jan 2020 12:58:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iot7D-0001K0-GB for emacs-devel@gnu.org; Tue, 07 Jan 2020 12:58:04 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:13079) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iot7B-0001Gm-Dy; Tue, 07 Jan 2020 12:58:01 -0500 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id C84AF83464; Tue, 7 Jan 2020 12:57:59 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 4501381E26; Tue, 7 Jan 2020 12:57:58 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1578419878; bh=leLZlrv9M5aLWgTHwFj0EUcZyuc6ds9BmBglC6qJ7OE=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=lGcJF2DTVTmrd1DwTUZdAMYtfm6/1en/RPMLKZ4gpZzd+RpVBMMGe3uU/3mVF2go0 b/WGPIU0xtJ1XoEOhwC0I9rQZD9kXMTbrs1JbK1DxzF123UFuBbcpDrHy6SF88pSQ3 pzjPAOOBV2tEoArjDq9q5t2/guD4Vrmf2LoTzyWhRDCku5EEXjyMYBqj3MiqsDIcYg JnqjLh5WPedvfuSbV24oiaOHUa3/q3CH/pqLLGNvwkLvsa7zWB6FatMOyfSfV4ojJT UD4FWhSH79VcuuzBdih9s2KPLq745fX6JomlKKgZTTnzFpXSkWTGocGdUIielNcr8l cuExNepoV2k+A== Original-Received: from alfajor (modemcable157.163-203-24.mc.videotron.ca [24.203.163.157]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 05A3B120270; Tue, 7 Jan 2020 12:57:58 -0500 (EST) In-Reply-To: <837e23chdm.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 07 Jan 2020 19:21:09 +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:244082 Archived-At: >> The confusion is that once I start Emacs without any configuration, the >> $HOME/.config/emacs will be created, >> and after that the $HOME/.emacs.d will never be used, even though I don't >> actually have a configuration yet. >> All I did was to start Emacs once. > > But Emacs did that with ~/.emacs.d/ as well: it would create it if it > didn't exist when you first started. It did that silently without any > warning. How is this situation different? It's different because the existence of ~/.emacs.d/ did not significantly change Emacs's behavior in most cases, whereas the existence of ~/.config/emacs has the effect of ignoring all of ~/.emacs.d. That's why I originally suggested that if ~/.emacs.d/ exists we should use it in preference to ~/.config/emacs/ rather than the reverse. We could also be smarter: if both exist and one of the two is empty, then prefer the non-empty one. In any case, we should probably be more proactive about the problem: if both exist we should emit a clear and visible warning. > 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". Stefan