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 09:16:12 +0300 Message-ID: <86wml83cgj.fsf@gnu.org> References: <5F9F4A78-8D6D-43B9-9304-641D54AF472E@toadstyle.org> <868qxp47xs.fsf@gnu.org> <8E3F46B7-A584-44FE-B3D7-A6B1D645B4D7@toadstyle.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8676"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 72294-done@debbugs.gnu.org To: Sean Devlin Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jul 26 08:17:26 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 1sXEGc-000299-BK for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 26 Jul 2024 08:17:26 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sXEG8-0007ll-SP; Fri, 26 Jul 2024 02:16:56 -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 1sXEG7-0007kv-9d for bug-gnu-emacs@gnu.org; Fri, 26 Jul 2024 02:16:55 -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 1sXEG6-0000N7-WD for bug-gnu-emacs@gnu.org; Fri, 26 Jul 2024 02:16:55 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sXEGE-00033e-TN for bug-gnu-emacs@gnu.org; Fri, 26 Jul 2024 02:17:02 -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 06:17:02 +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-done@debbugs.gnu.org id=D72294.172197459511707 (code D ref 72294); Fri, 26 Jul 2024 06:17:02 +0000 Original-Received: (at 72294-done) by debbugs.gnu.org; 26 Jul 2024 06:16:35 +0000 Original-Received: from localhost ([127.0.0.1]:38581 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sXEFn-00032l-1j for submit@debbugs.gnu.org; Fri, 26 Jul 2024 02:16:35 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:37148) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sXEFk-00032Y-Oo for 72294-done@debbugs.gnu.org; Fri, 26 Jul 2024 02:16:33 -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 1sXEFU-0000HA-9U; Fri, 26 Jul 2024 02:16:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=1rcBE4inIx+r4jXoIschKP0hfKaRxMaHKiU220xZ91g=; b=NHpgUS6IzyzC 5N+VBkNw0hGHVg0FLN5Qt4Sxl1rit4kFNeg2RMK4xjQ2lw/w8eHKJY/iwS/FDy6NIF16clASv5ldc l+tmSaJdWS78S6H5eFWPDvYpKvenBg6esGVLUxfWefQMR+u96q3/nmXvRoJonvzsXdkdNb5I//YE0 n4djJodU3TfxazuH6rTuCCVIwFqNik+be22DMJpv4uq6CyqL5urZl/U1lMlE8pqb2hYI2JMz8g4/F boEGSXRSPMFdqEUN/kRKw2dcz5yQuTrkBDWZ5tXn+/2+eoHhbt2NSJTHfRfgR6/1+9Vs2bZ+rK2QM jP6aQExIq55CkUSHpJf98A==; In-Reply-To: <8E3F46B7-A584-44FE-B3D7-A6B1D645B4D7@toadstyle.org> (message from Sean Devlin on Thu, 25 Jul 2024 15:59:45 -0400) 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:289348 Archived-At: > From: Sean Devlin > Date: Thu, 25 Jul 2024 15:59:45 -0400 > Cc: 72294@debbugs.gnu.org > > Hi, > > > I don't think this is a bug. > > Fair enough. > > > May I ask why you needed to use this option? It should not be > > generally needed. > > Lately, I run Emacs from the emacs-30 branch with some local tweaks. I > found a bug in Org, and I was trying to reproduce it in a stable version > of Emacs with default configuration. The bug is in Org 9.7+, which is > newer than what ships in Emacs 29. > > Since I knew I would need to install a package, I checked the manual for > the command-line flags to specify the user-emacs-directory, and I found > the --init-directory option. I opened an instance of Emacs 29.2 with > --init-directory=/tmp/bug, and I installed Org via ELPA. > > Then, for an unrelated task, I opened an instance of my main Emacs > installation, and I was surprised to see it load without any of my > configuration. I discovered the Emacs 29 instance had written a file to > ~/.emacs, shadowing my own configuration in ~/.emacs.d/init.el. That it > wrote the user-init-file outside the user-emacs-directory I specified > was surprising to me. Thanks, I used this to improve the documentation of --init-directory on the emacs-30 branch and make it more accurate, and I'm therefore closing this bug.