[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#21353: 25.0.50; Emacs Trunk (OSX) -- `default-directory` is initiall
From: |
Keith David Bershatsky |
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@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?