GNU bug report logs -
#72294
29.2; Emacs --init-directory=... puts user-init-file elsewhere
Previous Next
Reported by: Sean Devlin <spd <at> toadstyle.org>
Date: Thu, 25 Jul 2024 16:13:01 UTC
Severity: normal
Found in version 29.2
Done: Daan Ro <daanturo <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
>>>>> On Fri, 26 Jul 2024 13:34:07 +0300, Eli Zaretskii <eliz <at> gnu.org> said:
>> From: Robert Pluim <rpluim <at> gmail.com>
>> Cc: Eli Zaretskii <eliz <at> gnu.org>, 72294 <at> debbugs.gnu.org
>> Date: Fri, 26 Jul 2024 08:15:01 +0200
>>
>> >>>>> On Thu, 25 Jul 2024 15:59:45 -0400, Sean Devlin <spd <at> toadstyle.org> 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'.
I agree it would be less confusing if it used the ".emacs" in
"/tmp/emacs-30", but I think the ship has sailed on that one.
Robert
--
This bug report was last modified 301 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.