From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Keith David Bershatsky Newsgroups: gmane.emacs.bugs Subject: bug#21353: 25.0.50; Emacs Trunk (OSX) -- `default-directory` is initially set to "." Date: Wed, 26 Aug 2015 10:58:46 -0700 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (generated by - "") Content-Type: text/plain; charset=US-ASCII X-Trace: ger.gmane.org 1440611963 15193 80.91.229.3 (26 Aug 2015 17:59:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 26 Aug 2015 17:59:23 +0000 (UTC) Cc: 21353@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Aug 26 19:59:12 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZUeyc-0008Mz-Ox for geb-bug-gnu-emacs@m.gmane.org; Wed, 26 Aug 2015 19:59:10 +0200 Original-Received: from localhost ([::1]:39793 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUeyb-0000sz-QC for geb-bug-gnu-emacs@m.gmane.org; Wed, 26 Aug 2015 13:59:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48482) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUeyY-0000sW-8c for bug-gnu-emacs@gnu.org; Wed, 26 Aug 2015 13:59:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZUeyV-0005aY-00 for bug-gnu-emacs@gnu.org; Wed, 26 Aug 2015 13:59:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:46889) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUeyU-0005aP-SU for bug-gnu-emacs@gnu.org; Wed, 26 Aug 2015 13:59:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZUeyU-0005ZH-KG for bug-gnu-emacs@gnu.org; Wed, 26 Aug 2015 13:59:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Keith David Bershatsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 26 Aug 2015 17:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21353 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21353-submit@debbugs.gnu.org id=B21353.144061193121376 (code B ref 21353); Wed, 26 Aug 2015 17:59:02 +0000 Original-Received: (at 21353) by debbugs.gnu.org; 26 Aug 2015 17:58:51 +0000 Original-Received: from localhost ([127.0.0.1]:39099 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZUeyJ-0005Yi-Cf for submit@debbugs.gnu.org; Wed, 26 Aug 2015 13:58:51 -0400 Original-Received: from cobb.liquidweb.com ([50.28.13.150]:47884) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZUeyH-0005YZ-BU for 21353@debbugs.gnu.org; Wed, 26 Aug 2015 13:58:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lawlist.com; s=default; h=Content-Type:MIME-Version:Subject:Cc:To:From:Message-ID:Date; bh=UkE0iRtT0s4P04mdju5T67lGGQxbYxwEOxc2AjLnPh8=; b=xSPWlvyDJmAqGRtVFYzb27qWF/PGADIDJT/XyWBDftmffvohTmL+3UXy/QXxaWmo+UKUVuUq2SHygOySLHyjS5MB1gVAiVoj+sRPlBpMKYkjrKCK5jzJ3tPKhZ1llY2Z; Original-Received: from cpe-45-48-239-195.socal.res.rr.com ([45.48.239.195]:51208 helo=server.local.localhost) by cobb.liquidweb.com with esmtp (Exim 4.82) (envelope-from ) id 1ZUeyD-0003jY-9L; Wed, 26 Aug 2015 13:58:45 -0400 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cobb.liquidweb.com X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lawlist.com X-Get-Message-Sender-Via: cobb.liquidweb.com: acl_c_relayhosts_text_entry: lawlist|lawlist.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:105849 Archived-At: 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 > > > > 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?