From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.bugs Subject: bug#49424: 27.2; Misdocumented default initialisation file Date: Wed, 07 Jul 2021 11:17:23 +0200 Message-ID: <87zguybhzw.fsf@gmail.com> References: <87bl7fscid.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32967"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 49424@debbugs.gnu.org, Peter Oliver To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jul 07 11:18:09 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m13h2-0008JV-Il for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 07 Jul 2021 11:18:08 +0200 Original-Received: from localhost ([::1]:44354 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m13h1-00078F-G4 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 07 Jul 2021 05:18:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37046) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m13gw-000787-Ot for bug-gnu-emacs@gnu.org; Wed, 07 Jul 2021 05:18:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39339) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m13gw-0001uL-IA for bug-gnu-emacs@gnu.org; Wed, 07 Jul 2021 05:18:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m13gw-0004Eq-Ep for bug-gnu-emacs@gnu.org; Wed, 07 Jul 2021 05:18:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Robert Pluim Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 07 Jul 2021 09:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49424 X-GNU-PR-Package: emacs Original-Received: via spool by 49424-submit@debbugs.gnu.org id=B49424.162564945416255 (code B ref 49424); Wed, 07 Jul 2021 09:18:02 +0000 Original-Received: (at 49424) by debbugs.gnu.org; 7 Jul 2021 09:17:34 +0000 Original-Received: from localhost ([127.0.0.1]:50885 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m13gT-0004E6-QQ for submit@debbugs.gnu.org; Wed, 07 Jul 2021 05:17:34 -0400 Original-Received: from mail-wm1-f52.google.com ([209.85.128.52]:42800) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m13gR-0004Dr-Qf for 49424@debbugs.gnu.org; Wed, 07 Jul 2021 05:17:32 -0400 Original-Received: by mail-wm1-f52.google.com with SMTP id j16-20020a05600c1c10b0290204b096b0caso1202451wms.1 for <49424@debbugs.gnu.org>; Wed, 07 Jul 2021 02:17:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :mime-version:content-transfer-encoding; bh=zdAsuvU2w0sl1QXkOwpnotzjBQKENgFXZKVLq/oHaLM=; b=ObfrNCNg9icPfrz3TGyJIioPfv2n8XWQbeup2iFqqe2WQIItCt5VK1DhbSJP85g6FV 9EWBTUIi6VKfdBahR+f2HzYNXWoqaxtLULKiEucZDfh/h+2L0HafL1IsGM1E+H+Cdu4d Dr5NwV9AWYcnqCGfFtu237aj0gemfJX5k2QeU7lhCYAhmwFP4JM6d4+60Sp//3p9BG0V ynOm8fOdIdRHeSc5oeZgHIpZJLaXmrkKFwx6wy1TE2akHDZwCr02ucQwSzgRREXMWQ3c KZa6/leCR2fx+xPJRV8jk6eeitXyTUp/dEXPvstrrrPK2b+lUNbMxjYBU4/m/v9YyxXj iFYg== 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:date:in-reply-to :message-id:mime-version:content-transfer-encoding; bh=zdAsuvU2w0sl1QXkOwpnotzjBQKENgFXZKVLq/oHaLM=; b=hVtf/1AGL3yWMrJaarwO8KAV8nobJa+ZyncTsnQpBp//hJqanSh32ZbkTWMUhB9BOP Yl84/obqSlzYfTrhjIU/Mn+2jrXV9rmB0ea1M5QjTrv+11esE9tL2iUa0Qxak3UmtUsG avrmOjp5Y63hZvpVAgWVa3XtAfLxwF9OIdUrQJTlzgUwJodst66LyQuMwJgxT4OZqFnO yo8IiIi74W3x8BLVHdc0gHK+Nlw54/WWexfNtYnDOuXKKKZ71CidnLVj3qbgLO64Awam CEzIGGHE0Hn4XEsU4rfsiqpjljaZT1D/rp7oSwNSy+A0yH2YUqdhsSg1Hox/sdGLfdxx SysA== X-Gm-Message-State: AOAM531aKDmrZAHKWjZG0cvdNt1+vJY+AfaRyXweNKwpm8cMVas6lkAK /vvYoNTH4HqtOOlfa08ghaxU8qKtv4s= X-Google-Smtp-Source: ABdhPJz9QZGO8jQBJoNgJr2UJTdHvbnC0ZQHm8UoWin8y/aUiXvNh51YZjna/FSJc541gH9UsQKVfQ== X-Received: by 2002:a7b:c844:: with SMTP id c4mr5598639wml.107.1625649445596; Wed, 07 Jul 2021 02:17:25 -0700 (PDT) Original-Received: from rltb ([82.66.8.55]) by smtp.gmail.com with ESMTPSA id b15sm23525149wrr.27.2021.07.07.02.17.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Jul 2021 02:17:25 -0700 (PDT) In-Reply-To: <87bl7fscid.fsf@gnus.org> (Lars Ingebrigtsen's message of "Tue, 06 Jul 2021 17:11:38 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:209581 Archived-At: >>>>> On Tue, 06 Jul 2021 17:11:38 +0200, Lars Ingebrigtsen said: Lars> Peter Oliver writes: >> The info page =E2=80=9C49.4.4 How Emacs Finds Your Init File=E2=80= =9D says: >>=20 >>> For brevity the rest of the Emacs documentation generally uses just >>> the current default location =E2=80=98~/.emacs.d/init.el=E2=80=99 f= or the init file. >>=20 >> However, this seems to be inaccurate: if I start Emacs as a new user >> and make a customisation, that customisation is written to ~/.emacs. Yes, we should change that to say '~/.emacs' Lars> That is indeed the case still in Emacs 28 -- I thought we'd chang= ed that Lars> to prefer either XDG paths or ~/.emacs.d/init.el when there's no Lars> previous init file? Emacs will prefer the XDG path if it exists and .emacs.d/init.el and .emacs don=CA=BCt. Similarly Emacs will prefer .emacs.d/init.el if it exists and .emacs doesn=CA=BCt. If nothing exists, Emacs will create ~/.emacs.d, and use ~/.emacs as the init file. We can change that to use ~/.emacs.d/init.el if we want, people who already have init files will not be affected. Robert --=20