From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Richard Brooksby Newsgroups: gmane.emacs.bugs Subject: bug#44446: 27.1; Emacs starts in wrong directory when launched from mac OS Finder Date: Wed, 4 Nov 2020 16:04:12 +0000 Message-ID: <712F6076-03C1-47A0-8A9C-E1DDDE456351@ravenbrook.com> Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.17\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33465"; mail-complaints-to="usenet@ciao.gmane.io" To: 44446@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 04 17:33:52 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kaLjM-0008c9-M3 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 04 Nov 2020 17:33:52 +0100 Original-Received: from localhost ([::1]:42972 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kaLjL-0004Od-OW for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 04 Nov 2020 11:33:51 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44942) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kaLR8-0003rj-VL for bug-gnu-emacs@gnu.org; Wed, 04 Nov 2020 11:15:05 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38821) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kaLR8-0006yf-JR for bug-gnu-emacs@gnu.org; Wed, 04 Nov 2020 11:15:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kaLR8-0006TY-Fl for bug-gnu-emacs@gnu.org; Wed, 04 Nov 2020 11:15:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Richard Brooksby Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 04 Nov 2020 16:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 44446 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.160450648824852 (code B ref -1); Wed, 04 Nov 2020 16:15:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 4 Nov 2020 16:14:48 +0000 Original-Received: from localhost ([127.0.0.1]:50367 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kaLQu-0006Sl-6S for submit@debbugs.gnu.org; Wed, 04 Nov 2020 11:14:48 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:47296) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kaLGv-0006Bw-Fu for submit@debbugs.gnu.org; Wed, 04 Nov 2020 11:04:30 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43028) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kaLGo-00056B-3A for bug-gnu-emacs@gnu.org; Wed, 04 Nov 2020 11:04:27 -0500 Original-Received: from berunda.ravenbrook.com ([94.229.129.35]:34014 helo=mx.ravenbrook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kaLGj-0005nx-Ow for bug-gnu-emacs@gnu.org; Wed, 04 Nov 2020 11:04:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=ravenbrook.com; s=exim4; h=To:Date:Message-Id:Subject:Mime-Version: Content-Transfer-Encoding:Content-Type:From:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=k88IOuYUxhFO1OWCupRYRi7Yp7qBLMNMvXlZ4jojSZY=; b=vq1pan0atYuxeHlEKlqVlBgZwM 7XAac8Hj4qPr2k2GNvAQUdf+axLlePebVKGLdCZv0UNjeETBviXO/wpaBAxGSv2KFRKomlUpUPDp1 NOtVI7YtXoVznTevQ+4rwLJyjOuXux4oFTGeSSpLnAg6X9HwN5awWGN/DOwKHDxAU2P4=; Original-Received: from [80.225.58.206] (helo=silverbird.home) by mx.ravenbrook.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kaLGf-00088i-6z for bug-gnu-emacs@gnu.org; Wed, 04 Nov 2020 16:04:13 +0000 X-Mailer: Apple Mail (2.3445.104.17) Received-SPF: none client-ip=94.229.129.35; envelope-from=rb@ravenbrook.com; helo=mx.ravenbrook.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/04 11:04:14 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Wed, 04 Nov 2020 11:14:46 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:192675 Archived-At: Launching a build of Emacs 27.1-1 downloaded from from the mac OS Finder starts Emacs in "/" rather than the user's home directory, as it did in Emacs 26. There appears to be explicit code for handling this case in main.c (see = ), and that code has changed between Emacs 26 and 27 (see = ) so it looks to me (at first glance) like this change is the culprit. Further evidence: - StackExchange = - build-emacs In GNU Emacs 27.1 (build 1, x86_64-apple-darwin18.7.0, NS appkit-1671.60 = Version 10.14.6 (Build 18G95)) of 2020-08-12 built on builder10-14.porkrind.org Windowing system distributor 'Apple', version 10.3.1671 System Description: Mac OS X 10.14.6 Recent messages: Mark set Mark saved where search started [2 times] Mark set Quit Mark set C-x C-g is undefined Quit [2 times] Making completion list... Mark saved where search started is undefined Configured using: 'configure --with-ns '--enable-locallisppath=3D/Library/Application Support/Emacs/${version}/site-lisp:/Library/Application Support/Emacs/site-lisp' --with-modules' Configured features: NOTIFY KQUEUE ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES THREADS JSON PDUMPER Important settings: value of $LANG: en_GB.UTF-8 locale-coding-system: utf-8-unix Major mode: C/*l Minor modes in effect: bug-reference-prog-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t abbrev-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny format-spec rfc822 mml mml-sec epa epg epg-config gnus-util rmail rmail-loaddefs text-property-search time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs ruby-mode smie eieio-opt speedbar sb-image ezimage dframe find-func thingatpt help-fns radix-tree vc-git bug-reference texinfo cl-extra help-mode novice misearch multi-isearch dired-aux solarized-rb-theme todotxt-mode p4 derived edmacro kmacro cl ps-print ps-print-loaddefs ps-def lpr diff-mode easy-mmode dired dired-loaddefs compile comint ansi-color ring server finder-inf package easymenu browse-url url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json subr-x map url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer 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 composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray 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 threads kqueue cocoa ns multi-tty make-network-process emacs) Memory information: ((conses 16 231923 8254) (symbols 48 16774 1) (strings 32 64106 2048) (string-bytes 1 1899286) (vectors 16 22498) (vector-slots 8 288882 15198) (floats 8 287 160) (intervals 56 4255 0) (buffers 1000 19))