From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.bugs Subject: bug#72294: 29.2; Emacs --init-directory=... puts user-init-file elsewhere Date: Fri, 26 Jul 2024 08:15:01 +0200 Message-ID: <87wml87k7u.fsf@gmail.com> References: <5F9F4A78-8D6D-43B9-9304-641D54AF472E@toadstyle.org> <868qxp47xs.fsf@gnu.org> <8E3F46B7-A584-44FE-B3D7-A6B1D645B4D7@toadstyle.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7936"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , 72294@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:12 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 1sXEGO-0001tg-Rw for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 26 Jul 2024 08:17:12 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sXEG8-0007lU-9Q; 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 1sXEG6-0007kU-MA for bug-gnu-emacs@gnu.org; Fri, 26 Jul 2024 02:16: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 1sXEG6-0000N0-DZ for bug-gnu-emacs@gnu.org; Fri, 26 Jul 2024 02:16:54 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sXEGE-00033X-E5 for bug-gnu-emacs@gnu.org; Fri, 26 Jul 2024 02:17:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Robert Pluim 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-submit@debbugs.gnu.org id=B72294.172197458111680 (code B ref 72294); Fri, 26 Jul 2024 06:17:02 +0000 Original-Received: (at 72294) by debbugs.gnu.org; 26 Jul 2024 06:16:21 +0000 Original-Received: from localhost ([127.0.0.1]:38577 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sXEFY-00032K-JF for submit@debbugs.gnu.org; Fri, 26 Jul 2024 02:16:20 -0400 Original-Received: from mail-wm1-f42.google.com ([209.85.128.42]:49429) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sXEFW-00031p-7L for 72294@debbugs.gnu.org; Fri, 26 Jul 2024 02:16:19 -0400 Original-Received: by mail-wm1-f42.google.com with SMTP id 5b1f17b1804b1-42802de6f59so12103945e9.3 for <72294@debbugs.gnu.org>; Thu, 25 Jul 2024 23:16:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1721974504; x=1722579304; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=V4obHdcEn6lcDLRr/TR6PaJ8axiNCqiMp7GxMABV1rY=; b=GO9AOw6pw+vmnxZCkVSFpFjRfHm1QQ+fwkRAObSEDBvaVukAje757YhVparUUCB+Y4 qo5g7Unuk5mWGFgB+5jwe/sI16ILCVMt5CukVX7eCR2tiQEpEfcxjGYI5ezDeBQv7eay Oq8bWMuFJiDZ9LqwAcjz7lPA/BsXjU8C2l6nFE6Uv3B8EkflQ4tpbBtvHL24H9uhq9id 0ZMcGgO5yDb2+yVyzRAuTOexsGJ/tWWhsOHjeKnSSzLJf59vy5GV09yqvLoPtF4PqXx6 do9DLcAXxgVmle6fgZznO8KEJUmxQEt70i6aUAHmx1p6YuwBL1y8Wtrv4caPfqlzwDQU KvlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721974504; x=1722579304; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=V4obHdcEn6lcDLRr/TR6PaJ8axiNCqiMp7GxMABV1rY=; b=WbnktyI3SCmGYjTIjmrC3+tr7KiM3loX3s34bkEp7YCP+69yULxgtKeTWZY3zoUdQ9 BRYDp8lHpJ4ByfzMgvjqH+R3iyluuAUdgJve5FxSPrls4PSXnfN3Jfq2tN7fTXYr2XkX vv/eeAQIRVIqcx67A1VeHWyKftCG1AnT7s7zEPZwBWX9dQWGmiUECWldValm/BQLzRKl zbfsNkC1n/NBzLQkL9+/mKfMr6c9ylVa2M+3ZZYARt2aNgqLhXL13AwtjGuymQ9Fv9Ss TPNUXY0kp1tJasbZrGPVA3/Skte7g41o4BYmCcd+0oL7gTHDGXSWDrHOFtwKHiOo/iNm W7Ng== X-Forwarded-Encrypted: i=1; AJvYcCWkvFgIU+2BfojAuZSB3BPhdNgchsFB5v2AHEUTl3wR7sdXoZoHxhviDSExHS8u2YQ845UCbG9PQ/7s6oWOUPPwfu0AavQ= X-Gm-Message-State: AOJu0YxoYksSrw3mXX4Q0IUkZe/P/sQAJ9qe7yRrQSZ0UBGEudpwHy5Q k6aX1Dx00xxrrucEI3Yd41n8ClTanWhJ2WuX81WFvGV82vpH4kuVzLjW+g== X-Google-Smtp-Source: AGHT+IEDF0g0GS06pKNIL0g+jsYcdSZsIvuJihnENqw7r0sQPbtP45OU2gKpNBgSa7p2rt8pZZEWwQ== X-Received: by 2002:adf:e787:0:b0:367:9d2c:9602 with SMTP id ffacd0b85a97d-36b31b4cbc5mr3614815f8f.49.1721974503552; Thu, 25 Jul 2024 23:15:03 -0700 (PDT) Original-Received: from rltb ([82.66.8.55]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-36b3686e07csm4066311f8f.111.2024.07.25.23.15.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jul 2024 23:15:02 -0700 (PDT) In-Reply-To: <8E3F46B7-A584-44FE-B3D7-A6B1D645B4D7@toadstyle.org> (Sean Devlin's message of "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:289347 Archived-At: >>>>> On Thu, 25 Jul 2024 15:59:45 -0400, Sean Devlin s= aid: Sean> Hi, >> I don't think this is a bug. Sean> Fair enough. >> May I ask why you needed to use this option? It should not be >> generally needed. Sean> Lately, I run Emacs from the emacs-30 branch with some local twea= ks. I Sean> found a bug in Org, and I was trying to reproduce it in a stable = version Sean> of Emacs with default configuration. The bug is in Org 9.7+, whic= h is Sean> newer than what ships in Emacs 29. Sean> Since I knew I would need to install a package, I checked the man= ual for Sean> the command-line flags to specify the user-emacs-directory, and I= found Sean> the --init-directory option. I opened an instance of Emacs 29.2 w= ith Sean> --init-directory=3D/tmp/bug, and I installed Org via ELPA. The emacs info file says =E2=80=98--init-directory=E2=80=99 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. Sean> Then, for an unrelated task, I opened an instance of my main Emacs Sean> installation, and I was surprised to see it load without any of my Sean> configuration. I discovered the Emacs 29 instance had written a f= ile to Sean> ~/.emacs, shadowing my own configuration in ~/.emacs.d/init.el. T= hat it Sean> wrote the user-init-file outside the user-emacs-directory I speci= fied Sean> was surprising to me. HOME=3D/tmp/emacs emacs is how I do that kind of testing. Robert --=20