unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Keith David Bershatsky <esq@lawlist.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 21353@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	[thread overview]
Message-ID: <m237z6rkx5.wl%esq@lawlist.com> (raw)
In-Reply-To: <m2egiqxav6.wl%esq@lawlist.com>

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?





  parent reply	other threads:[~2015-08-26 17:58 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-26 16:39 bug#21353: 25.0.50; Emacs Trunk (OSX) -- `default-directory` is initially set to "." Keith David Bershatsky
2015-08-26 17:12 ` Eli Zaretskii
2015-08-26 17:58 ` Keith David Bershatsky [this message]
2015-08-26 18:16   ` Glenn Morris
2015-08-26 19:03   ` Eli Zaretskii
2015-08-26 19:08 ` Keith David Bershatsky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m237z6rkx5.wl%esq@lawlist.com \
    --to=esq@lawlist.com \
    --cc=21353@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).