From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Default emacs init file location confusion Date: Tue, 07 Jan 2020 19:04:53 +0200 Message-ID: <83blrfci4q.fsf@gnu.org> References: <83y2ukc55g.fsf@gnu.org> <85C8025D-ACFD-4DEB-B030-E46B3109323E@gnu.org> <83lfqjckjn.fsf@gnu.org> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="40196"; mail-complaints-to="usenet@blaine.gmane.org" Cc: smartlitchi@gmail.com, lokedhs@gmail.com, emacs-devel@gnu.org To: Robert Pluim Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jan 07 18:07:52 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 1iosKc-0007Ze-FL for ged-emacs-devel@m.gmane.org; Tue, 07 Jan 2020 18:07:50 +0100 Original-Received: from localhost ([::1]:53540 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iosKb-0005En-2i for ged-emacs-devel@m.gmane.org; Tue, 07 Jan 2020 12:07:49 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45589) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iosHc-0000HR-6a for emacs-devel@gnu.org; Tue, 07 Jan 2020 12:04:45 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:50247) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iosHb-0005ys-UI; Tue, 07 Jan 2020 12:04:43 -0500 Original-Received: from [176.228.60.248] (port=1383 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iosHa-0007lN-T9; Tue, 07 Jan 2020 12:04:43 -0500 In-reply-to: (message from Robert Pluim on Tue, 07 Jan 2020 17:25:21 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:244071 Archived-At: > From: Robert Pluim > Cc: smartlitchi@gmail.com, lokedhs@gmail.com, emacs-devel@gnu.org > Date: Tue, 07 Jan 2020 17:25:21 +0100 > > Eli> (setq user-emacs-directory > Eli> (startup--xdg-or-homedot startup--xdg-config-home-emacs nil)) > > Eli> and startup--xdg-or-homedot is supposed not to look in ~/.config > Eli> unless ~/.config/emacs exists and is a directory. Or what am I > Eli> missing? > > If neither ~/.config/emacs nor ~/.emacs.d exist, > startup--xdg-or-homedot returns ~/.config/emacs But that doesn't seem to be the situation described by Elias in his original report. He said: > After installing Emacs, and starting it once to check that it > worked, I checked out my $HOME/.emacs.d directory from source > control and started Emacs. At this point, I noted that my init file > was not being loaded. If this means that ~/.emacs.d/ didn't exist when Emacs was first started, then I think it's OK for Emacs to default to ~/.config/emacs, because neither of the two possible candidates exist. So now I don't think I understand the confusion.