From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#72294: 29.2; Emacs --init-directory=... puts user-init-file elsewhere Date: Fri, 26 Jul 2024 15:03:41 +0300 Message-ID: <86o76k2wde.fsf@gnu.org> References: <5F9F4A78-8D6D-43B9-9304-641D54AF472E@toadstyle.org> <868qxp47xs.fsf@gnu.org> <8E3F46B7-A584-44FE-B3D7-A6B1D645B4D7@toadstyle.org> <87wml87k7u.fsf@gmail.com> <86v80s30io.fsf@gnu.org> <87sevw7489.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="39120"; mail-complaints-to="usenet@ciao.gmane.io" Cc: spd@toadstyle.org, 72294@debbugs.gnu.org To: Robert Pluim Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jul 26 14:07:14 2024 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 1sXJj8-0009yz-0e for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 26 Jul 2024 14:07:14 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sXJir-00030T-KR; Fri, 26 Jul 2024 08:06:57 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sXJin-00030A-H8 for bug-gnu-emacs@gnu.org; Fri, 26 Jul 2024 08:06:54 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sXJin-0006vp-8u for bug-gnu-emacs@gnu.org; Fri, 26 Jul 2024 08:06:53 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sXJiv-0003N3-Kl for bug-gnu-emacs@gnu.org; Fri, 26 Jul 2024 08:07:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 26 Jul 2024 12:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72294 X-GNU-PR-Package: emacs Original-Received: via spool by 72294-submit@debbugs.gnu.org id=B72294.172199557712896 (code B ref 72294); Fri, 26 Jul 2024 12:07:01 +0000 Original-Received: (at 72294) by debbugs.gnu.org; 26 Jul 2024 12:06:17 +0000 Original-Received: from localhost ([127.0.0.1]:38926 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sXJiD-0003Lv-F1 for submit@debbugs.gnu.org; Fri, 26 Jul 2024 08:06:17 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:33760) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sXJi8-0003Lf-5M for 72294@debbugs.gnu.org; Fri, 26 Jul 2024 08:06:15 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sXJfo-00069k-Kg; Fri, 26 Jul 2024 08:03:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=SAMmGf4esM15enCq1PILEaiwqWbK98vdCpF4BTGaUQo=; b=RR0QlBgWx1jo788gYoap lbnFsr8BNa7V/rNV1eK1hWbQIGCvT+qqztjifBbacfyoYeM5xjt9N8OSTHjpvgWiVUmi0sSp2asM5 dXJN4TOdmazqFSlGCb6x0qUjmL8uIRUqjdlPnggQVSHqk5x+KNNAh1NtMgDIXq6ekZRLVi6A1cp17 /hYR+gYDB4an16OkZvl3bIjmqr/UtmTwER0327n95PJmMoGW/Rb3pCSjXA9Cjdyk/3t3A0X8rXrCZ JnYQlCQuIzv/RvwuXpFQDzVzzdyDciGQjCOp5oTvJjHbXRHPxnIgJ8loE6hRsjDizoPq58NANzaHj /QrwIkp7wWbvTQ==; In-Reply-To: <87sevw7489.fsf@gmail.com> (message from Robert Pluim on Fri, 26 Jul 2024 14:00:22 +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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:289363 Archived-At: > From: Robert Pluim > Cc: spd@toadstyle.org, 72294@debbugs.gnu.org > Date: Fri, 26 Jul 2024 14:00:22 +0200 > > >>>>> On Fri, 26 Jul 2024 13:34:07 +0300, Eli Zaretskii said: > > >> From: Robert Pluim > >> Cc: Eli Zaretskii , 72294@debbugs.gnu.org > >> Date: Fri, 26 Jul 2024 08:15:01 +0200 > >> > >> >>>>> On Thu, 25 Jul 2024 15:59:45 -0400, Sean Devlin said: > >> > >> The emacs info file says > >> > >> ‘--init-directory’ > >> Specify the directory to use when looking for the Emacs init files. > >> > >> and '.emacs' is an Emacs init file, so I guess the confusion is > >> understandable. Maybe we should add "(except '.emacs')" to that > >> statement. > > Eli> That would be inaccurate, AFAIU. If the .emacs file is there, it will > Eli> be used from that directory. > > Thatʼs not what I observe: > > ~/.emacs: > > (message "Home dir") > > /tmp/emacs-30/.emacs: > > (message "Temp dir") > > src/emacs --init-directory=/tmp/emacs-30 > > => *Messages* contains "Home dir" > > So it looks like this option only affects `user-emacs-directory'. Sean said that an existing init file was being used from that directory. This contradicts your observations.