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: Keith David Bershatsky <esq <at> lawlist.com>
To: Eli Zaretskii <eliz <at> gnu.org>
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 10:58:46 -0700
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:

"."

During startup, when Emacs reads `.../Emacs.app/Contents/Resources/site-lisp/subdirs.el` in prior working versions of Emacs Trunk (i.e., from last year), the value of the `default-directory` at the top of that file is:

".../Emacs.app/Contents/Resources/site-lisp"

The test can be duplicated by placing the following lines inside `.../Emacs.app/Contents/Resources/site-lisp/subdirs.el`

(message "What is the value of the default-directory?:  %s" default-directory)

(if (fboundp 'normal-top-level-add-subdirs-to-load-path)
    (normal-top-level-add-subdirs-to-load-path))

This is true even if I completely remove the entire `lisp` directory.

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.

Keith

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

At Wed, 26 Aug 2015 20:12:28 +0300,
Eli Zaretskii wrote:
> 
>  Emacs Trunk (OSX) -- `default-directory` is initially set to "."
> 
> > Date: Wed, 26 Aug 2015 09:39:25 -0700
> > From: Keith David Bershatsky <esq <at> lawlist.com>
> > 
> > The `default-directory` is initially set to "."
> 
> You mean, in the *scratch* buffer?  That happens in the function
> init_buffer; we get the directory by calling get_current_dir_name.
> Perhaps that function doesn't work well on Darwin?  Can you step with
> a debugger through init_buffer, and see what happens there?




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.