From unknown Tue Jun 17 01:44:20 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21353: 25.0.50; Emacs Trunk (OSX) -- `default-directory` is initially set to "." Resent-From: Keith David Bershatsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 26 Aug 2015 16:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 21353 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 21353@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.14406071807836 (code B ref -1); Wed, 26 Aug 2015 16:40:02 +0000 Received: (at submit) by debbugs.gnu.org; 26 Aug 2015 16:39:40 +0000 Received: from localhost ([127.0.0.1]:39033 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZUdjf-00022K-Ow for submit@debbugs.gnu.org; Wed, 26 Aug 2015 12:39:40 -0400 Received: from eggs.gnu.org ([208.118.235.92]:40676) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZUdjc-00022B-SW for submit@debbugs.gnu.org; Wed, 26 Aug 2015 12:39:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZUdjb-0007eY-4c for submit@debbugs.gnu.org; Wed, 26 Aug 2015 12:39:36 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:43436) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUdjb-0007eU-1V for submit@debbugs.gnu.org; Wed, 26 Aug 2015 12:39:35 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50680) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUdjZ-0006nV-IU for bug-gnu-emacs@gnu.org; Wed, 26 Aug 2015 12:39:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZUdjV-0007dT-8R for bug-gnu-emacs@gnu.org; Wed, 26 Aug 2015 12:39:33 -0400 Received: from cobb.liquidweb.com ([50.28.13.150]:34607) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUdjU-0007by-W7 for bug-gnu-emacs@gnu.org; Wed, 26 Aug 2015 12:39:29 -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:To:From:Message-ID:Date; bh=EVF8kfuAUoDCSBh6oGlcg6WIpkajDHJgHEb5PRyHC0s=; b=VJpbBpNhKAUtpwMrcVSejTPH2Sx66mTFkLWVS7OgZL1roVr03jj4Usfb5Ohzaau7s4dguRRSfcDCgvER2GgggxfRsvLQHq0rRxG68LE2Trr2NN2jRqd45vcGW4V+D+tm; Received: from cpe-45-48-239-195.socal.res.rr.com ([45.48.239.195]:50374 helo=server.local.localhost) by cobb.liquidweb.com with esmtp (Exim 4.82) (envelope-from ) id 1ZUdjR-0006K1-45 for bug-gnu-emacs@gnu.org; Wed, 26 Aug 2015 12:39:25 -0400 Date: Wed, 26 Aug 2015 09:39:25 -0700 Message-ID: From: Keith David Bershatsky MIME-Version: 1.0 (generated by - "") Content-Type: text/plain; charset=US-ASCII 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 - 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-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) The `default-directory` is initially set to ".", which results in erroneous entries being added to the `load-path` by `normal-top-level-add-subdirs-to-load-path` within `.../site-lisp/subdirs.el` when starting Emacs. The erroneous entries look like this: "." "./Applications" "./Applications (Parallels)" "./Desktop" "./Documents" "./Downloads" "./Library" "./Movies" "./Music" "./Pictures" "./Public" "./Sites" "./Users" I built Emacs Trunk from the directory `~/Desktop`, in the event that has any relevance -- `/Users/HOME/Desktop/emacs`. Thanks, Keith ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; In GNU Emacs 25.0.50.1 (x86_64-apple-darwin10.8.0, NS appkit-1038.36 Version 10.6.8 (Build 10K549)) of 2015-08-22 on server.local Repository revision: 0a3ed5f70c6025fbc2a7e3ca53f11770e4fabe61 Windowing system distributor `Apple', version 10.3.1038 Configured using: `configure --with-ns --without-imagemagick' Configured features: DBUS ACL LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS Important settings: locale-coding-system: utf-8-unix Major mode: Messages Minor modes in effect: tb-mode: t sb-mode: t ml-mode: t sd-mode: t bc-mode: t buffer-read-only: t Recent messages: default-directory: . default-directory: /Users/HOME/.0.data/.0.emacs/emacs_08_22_2015.app/Contents/Resources/site-lisp Wrote /Users/HOME/.0.data/.0.emacs/.lock *beep* Load-path shadows: None found. Features: (shadow emacsbug sendmail lawlist-ztree lawlist-yas lawlist-ws lawlist-wl elmo-imap4 elmo-localdir modb-standard modb-legacy elmo-internal elmo-flag mmelmo-imap mmelmo-buffer elsp-generic mel-u ps-print ps-def lpr epg-config enriched lawlist-w3m doc-view image-mode ccl lawlist-vl lawlist-view lawlist-undo lawlist-txt lawlist-tm lawlist-tex compare-w lawlist-tabbar lawlist-speedbar lawlist-shell info esh-groups ehelp ange-ftp lawlist-sgml lawlist-sb lawlist-saveplace lawlist-ruler lawlist-replace lawlist-rectangle lawlist-re-builder lawlist-python skeleton lawlist-profiler lawlist-print lawlist-php cl-seq lawlist-perl lawlist-parens lawlist-org lawlist-calendar org-agenda org org-macro org-footnote org-pcomplete org-list org-faces org-entities org-version ob-emacs-lisp ob ob-tangle ob-ref ob-lob ob-table ob-exp org-src ob-keys ob-comint ob-core ob-eval org-compat org-macs org-loaddefs find-func holidays hol-loaddefs cal-menu calendar cal-loaddefs lawlist-neotree lawlist-movement lawlist-mouse lawlist-ml lawlist-minibuffer lawlist-misc lawlist-messages lawlist-mc rect lawlist-markdown noutline outline lawlist-lorem lawlist-ln lawlist-keymap lawlist-js lawlist-ispell lawlist-isearch lawlist-imenu lawlist-ibuffer lawlist-hl lawlist-grep lawlist-git ido vc-git vc vc-dispatcher thingatpt time-stamp subr-x server nntp gnus-group gnus-undo gnus-start gnus-cloud nnimap nnmail mail-source tls utf7 netrc parse-time gnus-spec gnus-int gnus-range gnus-win nnoo mm-view mml-smime smime dig mailcap log-view log-edit message mml mml-sec mm-decode mm-bodies mm-encode gmm-utils mailheader pcvs-util add-log ldap json grep compile find-lisp ediff-merg ediff-wind ediff-diff ediff-mult ediff-help ediff-init ediff-util ediff diff-mode conf-mode autorevert filenotify lawlist-frame lawlist-frame-bufs lawlist-font-lock lawlist-fm lawlist-env lawlist-elscreen lawlist-elisp lawlist-dv jka-compr lawlist-image cl-macs lawlist-files zeroconf dbus xml lawlist-ds lawlist-dired edmacro kmacro dired format-spec lawlist-desktop frameset lawlist-debug lawlist-window debug lawlist-css smie lawlist-compile rx lawlist-color lawlist-cm gv lawlist-cc cc-langs cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs cc-bytecomp lawlist-calc lawlist-calccomp lawlist-calcalg3 lawlist-calcalg2 lawlist-calc+ lawlist-bk lawlist-bc lawlist-bbdb gnus gnus-ems nnheader mail-utils wid-edit mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev mail-extr rfc822 timezone lawlist-auth gnus-util mm-util help-fns mail-prsvr password-cache lawlist-as lawlist-archive lawlist-+ lawlist-lcl byte-opt bytecomp byte-compile cl-extra seq cconv lawlist-help disp-table easy-mmode quail help-mode easymenu cl-loaddefs cl-lib pcase derived advice shell pcomplete comint ansi-color ring savehist time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel ns-win term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote dbusbind cocoa ns multi-tty make-network-process emacs) Memory information: ((conses 16 2198610 241653) (symbols 48 87224 0) (miscs 40 128 238) (strings 32 193964 25144) (string-bytes 1 7182033) (vectors 16 39875) (vector-slots 8 957364 18787) (floats 8 2129 397) (intervals 56 369 40) (buffers 976 11)) From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 26 13:08:35 2015 Received: (at control) by debbugs.gnu.org; 26 Aug 2015 17:08:36 +0000 Received: from localhost ([127.0.0.1]:39058 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZUeBf-0002lc-Jf for submit@debbugs.gnu.org; Wed, 26 Aug 2015 13:08:35 -0400 Received: from eggs.gnu.org ([208.118.235.92]:51104) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZUeBd-0002lV-Oe for control@debbugs.gnu.org; Wed, 26 Aug 2015 13:08:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZUeBc-00050g-N3 for control@debbugs.gnu.org; Wed, 26 Aug 2015 13:08:33 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-4.3 required=5.0 tests=ALL_TRUSTED,BAYES_00, RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([208.118.235.10]:41515) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUeBc-00050a-K7 for control@debbugs.gnu.org; Wed, 26 Aug 2015 13:08:32 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1ZUeBc-0008PG-5A for control@debbugs.gnu.org; Wed, 26 Aug 2015 13:08:32 -0400 Subject: control message for bug 21353 To: X-Mailer: mail (GNU Mailutils 2.99.98) Message-Id: From: Glenn Morris Date: Wed, 26 Aug 2015 13:08:32 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.10 X-Spam-Score: -6.4 (------) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.4 (------) merge 21104 21353 From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 26 13:08:42 2015 Received: (at control) by debbugs.gnu.org; 26 Aug 2015 17:08:42 +0000 Received: from localhost ([127.0.0.1]:39061 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZUeBl-0002ly-UO for submit@debbugs.gnu.org; Wed, 26 Aug 2015 13:08:42 -0400 Received: from eggs.gnu.org ([208.118.235.92]:51131) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZUeBk-0002lr-Fy for control@debbugs.gnu.org; Wed, 26 Aug 2015 13:08:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZUeBj-00052b-Tu for control@debbugs.gnu.org; Wed, 26 Aug 2015 13:08:40 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-4.3 required=5.0 tests=ALL_TRUSTED,BAYES_00, RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([208.118.235.10]:41516) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUeBj-00052V-R8 for control@debbugs.gnu.org; Wed, 26 Aug 2015 13:08:39 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1ZUeBj-0008Py-By for control@debbugs.gnu.org; Wed, 26 Aug 2015 13:08:39 -0400 Subject: control message for bug 19759 To: X-Mailer: mail (GNU Mailutils 2.99.98) Message-Id: From: Glenn Morris Date: Wed, 26 Aug 2015 13:08:39 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.10 X-Spam-Score: -6.4 (------) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.4 (------) block 19759 by 21353 From unknown Tue Jun 17 01:44:20 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21353: 25.0.50; Emacs Trunk (OSX) -- `default-directory` is initially set to "." Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 26 Aug 2015 17:13: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: To: Keith David Bershatsky Cc: 21353@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 21353-submit@debbugs.gnu.org id=B21353.144060915411080 (code B ref 21353); Wed, 26 Aug 2015 17:13:02 +0000 Received: (at 21353) by debbugs.gnu.org; 26 Aug 2015 17:12:34 +0000 Received: from localhost ([127.0.0.1]:39067 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZUeFV-0002se-M1 for submit@debbugs.gnu.org; Wed, 26 Aug 2015 13:12:33 -0400 Received: from mtaout21.012.net.il ([80.179.55.169]:37343) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZUeFT-0002sS-6W for 21353@debbugs.gnu.org; Wed, 26 Aug 2015 13:12:32 -0400 Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0NTP00I008N26M00@a-mtaout21.012.net.il> for 21353@debbugs.gnu.org; Wed, 26 Aug 2015 20:12:29 +0300 (IDT) Received: from HOME-C4E4A596F7 ([84.94.185.246]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NTP00ILQ94T5M30@a-mtaout21.012.net.il>; Wed, 26 Aug 2015 20:12:29 +0300 (IDT) Date: Wed, 26 Aug 2015 20:12:28 +0300 From: Eli Zaretskii In-reply-to: X-012-Sender: halo1@inter.net.il Message-id: <83k2si55z7.fsf@gnu.org> References: X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > 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? From unknown Tue Jun 17 01:44:20 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21353: 25.0.50; Emacs Trunk (OSX) -- `default-directory` is initially set to "." References: 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: To: Eli Zaretskii Cc: 21353@debbugs.gnu.org Received: via spool by 21353-submit@debbugs.gnu.org id=B21353.144061193121376 (code B ref 21353); Wed, 26 Aug 2015 17:59:02 +0000 Received: (at 21353) by debbugs.gnu.org; 26 Aug 2015 17:58:51 +0000 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 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; 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 Date: Wed, 26 Aug 2015 10:58:46 -0700 Message-ID: From: Keith David Bershatsky MIME-Version: 1.0 (generated by - "") Content-Type: text/plain; charset=US-ASCII 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-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) 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? From unknown Tue Jun 17 01:44:20 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21353: 25.0.50; Emacs Trunk (OSX) -- `default-directory` is initially set to "." Resent-From: Glenn Morris Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 26 Aug 2015 18:17:01 +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: To: Keith David Bershatsky Cc: 21353@debbugs.gnu.org, Eli Zaretskii Received: via spool by 21353-submit@debbugs.gnu.org id=B21353.144061301323178 (code B ref 21353); Wed, 26 Aug 2015 18:17:01 +0000 Received: (at 21353) by debbugs.gnu.org; 26 Aug 2015 18:16:53 +0000 Received: from localhost ([127.0.0.1]:39123 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZUfFk-00061m-Oi for submit@debbugs.gnu.org; Wed, 26 Aug 2015 14:16:52 -0400 Received: from eggs.gnu.org ([208.118.235.92]:43951) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZUfFj-00061e-CY for 21353@debbugs.gnu.org; Wed, 26 Aug 2015 14:16:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZUfFi-0001RN-Fa for 21353@debbugs.gnu.org; Wed, 26 Aug 2015 14:16:51 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-4.3 required=5.0 tests=ALL_TRUSTED,BAYES_00, RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([208.118.235.10]:42378) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUfFe-0001OL-U9; Wed, 26 Aug 2015 14:16:46 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1ZUfFc-0000BW-G3; Wed, 26 Aug 2015 14:16:44 -0400 From: Glenn Morris References: X-Spook: Disaster management AGT. AMME Shootout Car bomb Wildfire X-Ran: 05jP&/lL+![4^KyDg*%ugZB/Q\8\GP:Qa/x^(3B6y@~(%z;Xsws7k (Keith David Bershatsky's message of "Wed, 26 Aug 2015 10:58:46 -0700") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.10 X-Spam-Score: -6.4 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.4 (------) This is bug#21104, and as I said there: [...] it would be helpful for someone to pinpoint when this started. (It should be easy using nightly builds from http://emacsformacosx.com/builds/all ) From unknown Tue Jun 17 01:44:20 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21353: 25.0.50; Emacs Trunk (OSX) -- `default-directory` is initially set to "." Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 26 Aug 2015 19:04:01 +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: To: Keith David Bershatsky Cc: 21353@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 21353-submit@debbugs.gnu.org id=B21353.144061578828714 (code B ref 21353); Wed, 26 Aug 2015 19:04:01 +0000 Received: (at 21353) by debbugs.gnu.org; 26 Aug 2015 19:03:08 +0000 Received: from localhost ([127.0.0.1]:39176 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZUfyV-0007T4-Of for submit@debbugs.gnu.org; Wed, 26 Aug 2015 15:03:07 -0400 Received: from mtaout21.012.net.il ([80.179.55.169]:41295) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZUfyT-0007Sv-3F for 21353@debbugs.gnu.org; Wed, 26 Aug 2015 15:03:06 -0400 Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0NTP00I00E8GGN00@a-mtaout21.012.net.il> for 21353@debbugs.gnu.org; Wed, 26 Aug 2015 22:03:03 +0300 (IDT) Received: from HOME-C4E4A596F7 ([84.94.185.246]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NTP00IMQE93GH00@a-mtaout21.012.net.il>; Wed, 26 Aug 2015 22:03:03 +0300 (IDT) Date: Wed, 26 Aug 2015 22:03:02 +0300 From: Eli Zaretskii In-reply-to: X-012-Sender: halo1@inter.net.il Message-id: <83io816ffd.fsf@gnu.org> References: X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > Date: Wed, 26 Aug 2015 10:58:46 -0700 > From: Keith David Bershatsky > Cc: 21353@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? From unknown Tue Jun 17 01:44:20 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21353: 25.0.50; Emacs Trunk (OSX) -- `default-directory` is initially set to "." References: 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 19:09: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: To: Glenn Morris Cc: 21353@debbugs.gnu.org, Eli Zaretskii Received: via spool by 21353-submit@debbugs.gnu.org id=B21353.144061610629222 (code B ref 21353); Wed, 26 Aug 2015 19:09:02 +0000 Received: (at 21353) by debbugs.gnu.org; 26 Aug 2015 19:08:26 +0000 Received: from localhost ([127.0.0.1]:39180 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZUg3e-0007bE-Co for submit@debbugs.gnu.org; Wed, 26 Aug 2015 15:08:26 -0400 Received: from cobb.liquidweb.com ([50.28.13.150]:53667) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZUg3c-0007b4-0F for 21353@debbugs.gnu.org; Wed, 26 Aug 2015 15:08:24 -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=WaFIiYf2wdALizZvbq3R64BV4CogW3oWa5TWc3Y1yLk=; b=Enhx8zHP+HNk9T4isN290gQtZaqaBG1JJCD7IOLdGu4/bq2dNGStfOZGjlQUv/42R/Ub5hKQd3IcD7OiNpfAHF0W2CdbElfrDJ7ZgHRBpmmRf9xC1QzkKJGSLWM5m8v4; Received: from cpe-45-48-239-195.socal.res.rr.com ([45.48.239.195]:52108 helo=server.local.localhost) by cobb.liquidweb.com with esmtp (Exim 4.82) (envelope-from ) id 1ZUg3Y-0001bk-GG; Wed, 26 Aug 2015 15:08:20 -0400 Date: Wed, 26 Aug 2015 12:08:22 -0700 Message-ID: From: Keith David Bershatsky MIME-Version: 1.0 (generated by - "") Content-Type: text/plain; charset=US-ASCII 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-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) This is interesting because none of the various nightly builds from emacsformacosx.com have this issue. It would appear that my building blocks are somehow different. Keith ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; At Wed, 26 Aug 2015 14:16:44 -0400, Glenn Morris wrote: > > > This is bug#21104, and as I said there: > > [...] it would be helpful for someone to pinpoint when this started. > (It should be easy using nightly builds from > > http://emacsformacosx.com/builds/all )