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 18:33:31 +0200 Message-ID: References: <87bl7fscid.fsf@gnus.org> <87zguybhzw.fsf@gmail.com> <87o8beb77j.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="19610"; 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:TPf6xA/RaLc/CCzd1pvF2CWwEXk= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jul 07 18:36:38 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 1m1AXO-0004tD-0u for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 07 Jul 2021 18:36:38 +0200 Original-Received: from localhost ([::1]:38874 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m1AXN-00054s-1x for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 07 Jul 2021 12:36:37 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58396) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m1AUs-0002Ta-PB for bug-gnu-emacs@gnu.org; Wed, 07 Jul 2021 12:34:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41783) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m1AUs-0000rQ-Hz for bug-gnu-emacs@gnu.org; Wed, 07 Jul 2021 12:34:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m1AUs-0003oL-Dk for bug-gnu-emacs@gnu.org; Wed, 07 Jul 2021 12:34:02 -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 16:34:02 +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.162567562814624 (code B ref -1); Wed, 07 Jul 2021 16:34:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 7 Jul 2021 16:33:48 +0000 Original-Received: from localhost ([127.0.0.1]:53329 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m1AUe-0003no-Av for submit@debbugs.gnu.org; Wed, 07 Jul 2021 12:33:48 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:50560) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m1AUb-0003nc-GD for submit@debbugs.gnu.org; Wed, 07 Jul 2021 12:33:47 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58336) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m1AUa-0002Ib-23 for bug-gnu-emacs@gnu.org; Wed, 07 Jul 2021 12:33:45 -0400 Original-Received: from ciao.gmane.io ([116.202.254.214]:38420) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m1AUX-0000pU-No for bug-gnu-emacs@gnu.org; Wed, 07 Jul 2021 12:33:43 -0400 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1m1AUW-000A4i-9F for bug-gnu-emacs@gnu.org; Wed, 07 Jul 2021 18:33:40 +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:209597 Archived-At: Robert Pluim writes: >>>>>> On Wed, 07 Jul 2021 13:28:30 +0200, Rudolf Schlatte said: > > Rudolf> Robert Pluim writes: > > >> 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. > > Rudolf> I wonder if it would make sense to warn during startup if more than one > Rudolf> of these files exist, something like: "Warning: multiple init files > Rudolf> detected. Using ~/.emacs as init file, ignoring ~/.emacs.d/init.el" > > A warning prominent enough for people to notice would also be annoying > enough that people would complain about us changing the status quo out > from under them. The best we could do is putting something in > *Messages*, I suspect A line in *Messages* was what I was thinking of, yes. Maybe conditional on a variable in case it turns out annoying for people who have shadowed init files on purpose and want to keep their *Messages* buffer clean. Or maybe a command `list-init-file-shadows' analogous to the existing `list-load-path-shadows'.