From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Rudolf Schlatte Newsgroups: gmane.emacs.bugs Subject: bug#49424: 27.2; Misdocumented default initialisation file Date: Wed, 07 Jul 2021 13:28:30 +0200 Message-ID: References: <87bl7fscid.fsf@gnus.org> <87zguybhzw.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4352"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (darwin) To: 49424@debbugs.gnu.org Cancel-Lock: sha1:05CoOOrL84W9U07R8DCpY28Eh9U= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jul 07 13:32:11 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 1m15ml-0000vp-Ag for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 07 Jul 2021 13:32:11 +0200 Original-Received: from localhost ([::1]:40266 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m15mk-0008F5-AU for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 07 Jul 2021 07:32:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34528) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m15mc-0008BL-DS for bug-gnu-emacs@gnu.org; Wed, 07 Jul 2021 07:32:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39459) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m15mc-00064o-64 for bug-gnu-emacs@gnu.org; Wed, 07 Jul 2021 07:32:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m15mb-0003Ip-M9 for bug-gnu-emacs@gnu.org; Wed, 07 Jul 2021 07:32:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Rudolf Schlatte Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 07 Jul 2021 11:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49424 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.162565747810484 (code B ref -1); Wed, 07 Jul 2021 11:32:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 7 Jul 2021 11:31:18 +0000 Original-Received: from localhost ([127.0.0.1]:51005 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m15lt-0002if-Vy for submit@debbugs.gnu.org; Wed, 07 Jul 2021 07:31:18 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:54118) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m15lq-0002fh-HX for submit@debbugs.gnu.org; Wed, 07 Jul 2021 07:31:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34350) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m15lq-0006ze-9Z for bug-gnu-emacs@gnu.org; Wed, 07 Jul 2021 07:31:14 -0400 Original-Received: from ciao.gmane.io ([116.202.254.214]:58356) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m15lo-0005tX-MV for bug-gnu-emacs@gnu.org; Wed, 07 Jul 2021 07:31:14 -0400 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1m15lk-000AKQ-Ok for bug-gnu-emacs@gnu.org; Wed, 07 Jul 2021 13:31:08 +0200 X-Injected-Via-Gmane: http://gmane.org/ Received-SPF: pass client-ip=116.202.254.214; envelope-from=geb-bug-gnu-emacs@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.25, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action 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:209582 Archived-At: Robert Pluim writes: >>>>>> On Tue, 06 Jul 2021 17:11:38 +0200, Lars Ingebrigtsen said: > > Lars> Peter Oliver writes: > >> The info page “49.4.4 How Emacs Finds Your Init File” says: > >> > >>> For brevity the rest of the Emacs documentation generally uses just > >>> the current default location ‘~/.emacs.d/init.el’ for the init file. > >> > >> 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 changed 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ʼt. Similarly Emacs will prefer .emacs.d/init.el if it > exists and .emacs doesnʼt. I wonder if it would make sense to warn during startup if more than one of these files exist, something like: "Warning: multiple init files detected. Using ~/.emacs as init file, ignoring ~/.emacs.d/init.el"