From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Sean Devlin Newsgroups: gmane.emacs.bugs Subject: bug#72294: 29.2; Emacs --init-directory=... puts user-init-file elsewhere Date: Thu, 25 Jul 2024 15:59:45 -0400 Message-ID: <8E3F46B7-A584-44FE-B3D7-A6B1D645B4D7@toadstyle.org> References: <5F9F4A78-8D6D-43B9-9304-641D54AF472E@toadstyle.org> <868qxp47xs.fsf@gnu.org> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3813.100.4\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5678"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 72294@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jul 25 22:02:22 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 1sX4fN-0001JZ-NX for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 25 Jul 2024 22:02:21 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sX4f0-0004z1-8N; Thu, 25 Jul 2024 16:01:58 -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 1sX4ex-0004ye-Hk for bug-gnu-emacs@gnu.org; Thu, 25 Jul 2024 16:01:56 -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 1sX4ex-0004U6-51 for bug-gnu-emacs@gnu.org; Thu, 25 Jul 2024 16:01:55 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sX4f4-0000TI-IF for bug-gnu-emacs@gnu.org; Thu, 25 Jul 2024 16:02:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Sean Devlin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 25 Jul 2024 20:02: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-submit@debbugs.gnu.org id=B72294.17219376721748 (code B ref 72294); Thu, 25 Jul 2024 20:02:02 +0000 Original-Received: (at 72294) by debbugs.gnu.org; 25 Jul 2024 20:01:12 +0000 Original-Received: from localhost ([127.0.0.1]:37847 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sX4eF-0000S8-PG for submit@debbugs.gnu.org; Thu, 25 Jul 2024 16:01:12 -0400 Original-Received: from mail-qt1-f172.google.com ([209.85.160.172]:46409) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sX4eC-0000Rt-TN for 72294@debbugs.gnu.org; Thu, 25 Jul 2024 16:01:10 -0400 Original-Received: by mail-qt1-f172.google.com with SMTP id d75a77b69052e-44930ea05b8so9115961cf.1 for <72294@debbugs.gnu.org>; Thu, 25 Jul 2024 13:01:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toadstyle-org.20230601.gappssmtp.com; s=20230601; t=1721937595; x=1722542395; darn=debbugs.gnu.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=IdZcnHaYPiPiUnrJ/5ttU8ySRWckyh1ek81fmHn88/U=; b=0yaS9llcbsQ65Q37M6CZu4BFW3nU7RMJN613jrMwdAHaPthvtvPMPvhc93m+eAZ3VQ 2n0t6TKIITjiR2FAdM9I1nxvlfZ39LXXPWMGgYDnrx3SppScQSEpQiaOjlEBwLHUbPWZ Hit1YF4qLEUO4so7lmoEk1X2rXgbY4yEhhUpQkLfyALm58TwHclRc6Czz6d07aMeDjU5 HlrvR9E2fOzW4Mo8IGAnhZckQsx1TP2UQlih2jj85mXpAwSeCGFSJwqhFRAvA5jsZbCF cwYittizd3CfQlRGpBpHzH8JbOjQbzxRx7sDTJI6XQqHK0yIM1m4/18LZT54iz8FO0Dw ZS7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721937595; x=1722542395; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=IdZcnHaYPiPiUnrJ/5ttU8ySRWckyh1ek81fmHn88/U=; b=nYQYz1vqVDFUVTy5EPcgmKCG2PWcvpza0P0A06yc3pmbHj6If01qFFyvbuu9l+OyXn cP3/+YCXKI7eFBqOwC0zvr60dHZOqntJuQuTyj0tbcFtvx/xv07/Nvth6Uq2tUaLNzDN 1lK/iDMxT9u3fq3EoaSFOWHpvz1lYDEkTb3X7AK4t38MDTX/sLe/wuhTZ4buwHnQUib5 Vqfzxc/JkEREZnBu70nCwShbgEAZSe4R1liPNbCxsCQ8G/ZR0MV5O+3LJ5d1y0+OUYPg SVcrRD2iq8Sn/BCNqVLeXlGkIHAETZZ7upzacBiSJdC1OuhLQkzN3EXM5mYBwzoOsXp+ YV5Q== X-Gm-Message-State: AOJu0YwKoFuDv1bh7DN1RhYrAffiTRykiAoAi74Vk8LeOYXAfiRkcaLX JP64uBCAelYuLJHUsJWdY2dBIee485ZLLpKLOPgkXGhSXek+ezaIXULbsqhDpLVaIbCyD7Relcd 9 X-Google-Smtp-Source: AGHT+IGFUdA6I0ExAC76R8v04T0zGu4qBFDYVmB4yUHiMUTb4fh9LvMWPIV1EbbeVyp7jrIVU3eeZQ== X-Received: by 2002:a05:622a:314:b0:44f:f22c:f5a9 with SMTP id d75a77b69052e-44ff22cfb4bmr10708751cf.57.1721937595184; Thu, 25 Jul 2024 12:59:55 -0700 (PDT) Original-Received: from smtpclient.apple ([70.107.172.48]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-44fe814652asm8967591cf.27.2024.07.25.12.59.54 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Jul 2024 12:59:54 -0700 (PDT) In-Reply-To: <868qxp47xs.fsf@gnu.org> X-Mailer: Apple Mail (2.3813.100.4) 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:289339 Archived-At: 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.