GNU bug report logs - #21353
25.0.50; Emacs Trunk (OSX) -- `default-directory` is initially set to "."

Previous Next

Package: emacs;

Reported by: Keith David Bershatsky <esq <at> lawlist.com>

Date: Wed, 26 Aug 2015 16:40:02 UTC

Severity: normal

Merged with 21104

Found in version 25.0.50

Done: Anders Lindgren <andlind <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Keith David Bershatsky <esq <at> lawlist.com>
Cc: 21353 <at> debbugs.gnu.org
Subject: bug#21353: 25.0.50; Emacs Trunk (OSX) -- `default-directory` is initially set to "."
Date: Wed, 26 Aug 2015 22:03:02 +0300
> Date:  Wed, 26 Aug 2015 10:58:46 -0700
> From:  Keith David Bershatsky <esq <at> lawlist.com>
> Cc:  21353 <at> debbugs.gnu.org
> 
> During startup, when Emacs reads `.../Emacs.app/Contents/Resources/site-lisp/subdirs.el` in a version of Emacs Trunk built on August 22, 2015, the value of the `default-directory` at the top of that file is:
> 
> "."

I think that is already too late.  Emacs determines its current
directory early on during startup, and then propagates that value to
every buffer it creates henceforth.

> On my Christmas wish-list is the desire to learn how to "step with a debugger"; however, that is presently beyond my limited hobbyist programming abilities.

OK, but you can still add fprintf lines to init_buffer and rebuild
Emacs to tell us the value returned by get_current_dir_name when it
starts, right?




This bug report was last modified 9 years and 163 days ago.

Previous Next


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