unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Sean Devlin <spd@toadstyle.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 72294@debbugs.gnu.org
Subject: bug#72294: 29.2; Emacs --init-directory=... puts user-init-file elsewhere
Date: Thu, 25 Jul 2024 15:59:45 -0400	[thread overview]
Message-ID: <8E3F46B7-A584-44FE-B3D7-A6B1D645B4D7@toadstyle.org> (raw)
In-Reply-To: <868qxp47xs.fsf@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.






  reply	other threads:[~2024-07-25 19:59 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-25 16:12 bug#72294: 29.2; Emacs --init-directory=... puts user-init-file elsewhere Sean Devlin
2024-07-25 18:56 ` Eli Zaretskii
2024-07-25 19:59   ` Sean Devlin [this message]
2024-07-26  6:15     ` Robert Pluim
2024-07-26 10:34       ` Eli Zaretskii
2024-07-26 12:00         ` Robert Pluim
2024-07-26 12:03           ` Eli Zaretskii
2024-07-26 12:14             ` Robert Pluim
2024-07-26 13:48               ` Sean Devlin
2024-07-26 13:51                 ` Robert Pluim
2024-07-26  6:16     ` Eli Zaretskii
2024-07-26 13:49       ` Sean Devlin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8E3F46B7-A584-44FE-B3D7-A6B1D645B4D7@toadstyle.org \
    --to=spd@toadstyle.org \
    --cc=72294@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).