GNU bug report logs - #42836
27.1; default-directory is set to "/" after startup

Previous Next

Package: emacs;

Reported by: Sean Devlin <spd <at> toadstyle.org>

Date: Wed, 12 Aug 2020 20:55:01 UTC

Severity: normal

Merged with 44446

Found in version 27.1

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


Message #29 received at 42836 <at> debbugs.gnu.org (full text, mbox):

From: Alan Third <alan <at> idiocy.org>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: Sean Devlin <spd <at> toadstyle.org>, 42836 <at> debbugs.gnu.org
Subject: Re: bug#42836: 27.1; default-directory is set to "/" after startup
Date: Fri, 14 Aug 2020 00:06:34 +0200 (CEST)
On Thu, Aug 13, 2020 at 12:54:00PM -0700, Paul Eggert wrote:
> On 8/13/20 7:52 AM, Alan Third wrote:
> > 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?
> 
> It's probably safer to leave the code where it is, and to update emacs_wd if
> Emacs chdirs successfully.
> 
> Does the attached patch work for you? If so, I can install it into the
> emacs-27 branch. (I don't use macOS so can't easily test it myself.)

It works for me.

Thanks!
-- 
Alan Third




This bug report was last modified 4 years and 199 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.