From: Alan Third <alan@idiocy.org>
To: Sean Devlin <spd@toadstyle.org>, 42836@debbugs.gnu.org
Cc: eggert@cs.ucla.edu
Subject: bug#42836: 27.1; default-directory is set to "/" after startup
Date: Thu, 13 Aug 2020 16:52:41 +0200 (CEST) [thread overview]
Message-ID: <20200813145237.GA26932@breton.holly.idiocy.org> (raw)
In-Reply-To: <20200812225244.GB42658@breton.holly.idiocy.org>
On Thu, Aug 13, 2020 at 12:52:51AM +0200, Alan Third wrote:
> On Wed, Aug 12, 2020 at 05:17:28PM -0400, Sean Devlin wrote:
> > > When I open Emacs 27.1 by invoking the executable directly (i.e. the
> > > last method above), the default-directory in those buffers is "~/“.
> >
> > Correction: the default directory is the working directory of the
> > parent process (i.e. the shell) in this case.
>
> The code at line 1623 of emacs.c appears to be supposed to set the
> correct starting directory, however it doesn't matter what it does
> there. I've tried hard coding directories and all sorts, but it ALWAYS
> ends up starting in "/"... I think something somewhere else must be
> resetting it. I can't find where just now. I may have to do a git bisect,
> which I don't much fancy.
The commit in question is:
900276502fbb4dcabdabc5d7d24b4bc5645f2cf3
Act like POSIX sh if $HOME is relative
I suspect the best solution here is to move the code at line
emacs.c:1623 to before emacs_wd is set. What do you think, Paul?
--
Alan Third
next prev parent reply other threads:[~2020-08-13 14:52 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-12 20:53 bug#42836: 27.1; default-directory is set to "/" after startup Sean Devlin
[not found] ` <handler.42836.B.15972656459719.ack@debbugs.gnu.org>
2020-08-12 21:17 ` Sean Devlin
2020-08-12 22:52 ` Alan Third
2020-08-13 14:52 ` Alan Third [this message]
2020-08-13 19:54 ` Paul Eggert
2020-08-13 21:18 ` Sean Devlin
2020-08-13 22:06 ` Alan Third
2020-08-13 22:44 ` Paul Eggert
2020-08-13 2:32 ` Eli Zaretskii
2020-08-13 4:08 ` 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=20200813145237.GA26932@breton.holly.idiocy.org \
--to=alan@idiocy.org \
--cc=42836@debbugs.gnu.org \
--cc=eggert@cs.ucla.edu \
--cc=spd@toadstyle.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).