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


View this message in rfc822 format

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Alan Third <alan <at> idiocy.org>, Sean Devlin <spd <at> toadstyle.org>, 42836 <at> debbugs.gnu.org
Subject: bug#42836: 27.1; default-directory is set to "/" after startup
Date: Thu, 13 Aug 2020 12:54:00 -0700
[Message part 1 (text/plain, inline)]
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.)
[0001-Fix-startup-working-dir-bug-on-NeXTSTEP.patch (text/x-patch, attachment)]

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.