From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Third Newsgroups: gmane.emacs.bugs Subject: bug#42836: 27.1; default-directory is set to "/" after startup Date: Thu, 13 Aug 2020 00:52:51 +0200 (CEST) Message-ID: <20200812225244.GB42658@breton.holly.idiocy.org> References: <460AAF63-B6EC-4AE7-8259-1808D46A5BFD@toadstyle.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27884"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 42836@debbugs.gnu.org To: Sean Devlin Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Aug 13 00:54:13 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 1k5zdM-00078l-Ja for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 13 Aug 2020 00:54:12 +0200 Original-Received: from localhost ([::1]:52468 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k5zdL-0005MV-FU for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 12 Aug 2020 18:54:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42182) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k5zdC-0005K2-G2 for bug-gnu-emacs@gnu.org; Wed, 12 Aug 2020 18:54:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34333) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k5zdC-0007GD-6B for bug-gnu-emacs@gnu.org; Wed, 12 Aug 2020 18:54:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1k5zdC-0003xS-4s for bug-gnu-emacs@gnu.org; Wed, 12 Aug 2020 18:54:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Third Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 12 Aug 2020 22:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42836 X-GNU-PR-Package: emacs Original-Received: via spool by 42836-submit@debbugs.gnu.org id=B42836.159727278215128 (code B ref 42836); Wed, 12 Aug 2020 22:54:02 +0000 Original-Received: (at 42836) by debbugs.gnu.org; 12 Aug 2020 22:53:02 +0000 Original-Received: from localhost ([127.0.0.1]:45879 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k5zcD-0003vt-NB for submit@debbugs.gnu.org; Wed, 12 Aug 2020 18:53:01 -0400 Original-Received: from mailout-l3b-97.contactoffice.com ([212.3.242.97]:42946) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k5zcC-0003vZ-E1 for 42836@debbugs.gnu.org; Wed, 12 Aug 2020 18:53:01 -0400 Original-Received: from smtpauth1.co-bxl (smtpauth1.co-bxl [10.2.0.15]) by mailout-l3b-97.contactoffice.com (Postfix) with ESMTP id BBBC042E; Thu, 13 Aug 2020 00:52:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1597272773; s=20200222-6h9o; d=idiocy.org; i=alan@idiocy.org; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version:Content-Type:Content-Transfer-Encoding:In-Reply-To; l=729; bh=V1DNgtwYuaaqqchPZtR+QKcMSQ056iO96iid4HpSnHU=; b=jyjtVQBZ6FwUcaiQ7nJ72GmYGnQdfmN5Ncilo503NpkIQIZ/HBLfw6J0Sk2Jik+3 1snJBSb6MASre0F+Z0cRpdGPxFMHFCsSKec32wKuSq7770S+rh3DRFs1A7YY1syizpc SoIUvg7XP9RIEeXzyGqjQrGse+5vqNpYSfIQ7ZAC7RtOR1AjIXe+g7ZpgGbxzYVQ8XR FO6YjC8cWT6zViQvV3HTnTExbEizWtxPfD16UI79bAtZvB7WAhGH2J7bPi2mhkQUGAC BU6wtP6A0UhwjTFt2GL6ATJ6HQbnMUDS6+7m9DfyTULPqKws0DPdPfBZGZAqi5LcVws jQfrcRSHUw== Original-Received: by smtp.mailfence.com with ESMTPA ; Thu, 13 Aug 2020 00:52:50 +0200 (CEST) Original-Received: by breton.holly.idiocy.org (Postfix, from userid 501) id B2BF620244E491; Wed, 12 Aug 2020 23:52:44 +0100 (BST) Mail-Followup-To: Alan Third , Sean Devlin , 42836@debbugs.gnu.org Content-Disposition: inline In-Reply-To: X-ContactOffice-Account: com:241649512 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:184896 Archived-At: On Wed, Aug 12, 2020 at 05:17:28PM -0400, Sean Devlin wrote: > > When I open Emacs 27.1 by invoking the executable directly (i.e. the > > last method above), the default-directory in those buffers is "~/“. > > Correction: the default directory is the working directory of the > parent process (i.e. the shell) in this case. The code at line 1623 of emacs.c appears to be supposed to set the correct starting directory, however it doesn't matter what it does there. I've tried hard coding directories and all sorts, but it ALWAYS ends up starting in "/"... I think something somewhere else must be resetting it. I can't find where just now. I may have to do a git bisect, which I don't much fancy. -- Alan Third