unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Alan Third <alan@idiocy.org>
To: Paul Eggert <eggert@cs.ucla.edu>
Cc: Sean Devlin <spd@toadstyle.org>, 42836@debbugs.gnu.org
Subject: bug#42836: 27.1; default-directory is set to "/" after startup
Date: Fri, 14 Aug 2020 00:06:34 +0200 (CEST)	[thread overview]
Message-ID: <20200813220631.GA43629@breton.holly.idiocy.org> (raw)
In-Reply-To: <f2dedd0c-2163-a6ab-a026-ef6e0d67d99f@cs.ucla.edu>

On Thu, Aug 13, 2020 at 12:54:00PM -0700, Paul Eggert wrote:
> On 8/13/20 7:52 AM, Alan Third wrote:
> > I suspect the best solution here is to move the code at line
> > emacs.c:1623 to before emacs_wd is set. What do you think, Paul?
> 
> It's probably safer to leave the code where it is, and to update emacs_wd if
> Emacs chdirs successfully.
> 
> Does the attached patch work for you? If so, I can install it into the
> emacs-27 branch. (I don't use macOS so can't easily test it myself.)

It works for me.

Thanks!
-- 
Alan Third





  parent reply	other threads:[~2020-08-13 22:06 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-12 20:53 bug#42836: 27.1; default-directory is set to "/" after startup Sean Devlin
     [not found] ` <handler.42836.B.15972656459719.ack@debbugs.gnu.org>
2020-08-12 21:17   ` Sean Devlin
2020-08-12 22:52     ` Alan Third
2020-08-13 14:52       ` Alan Third
2020-08-13 19:54         ` Paul Eggert
2020-08-13 21:18           ` Sean Devlin
2020-08-13 22:06           ` Alan Third [this message]
2020-08-13 22:44             ` Paul Eggert
2020-08-13  2:32     ` Eli Zaretskii
2020-08-13  4:08       ` Sean Devlin

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=20200813220631.GA43629@breton.holly.idiocy.org \
    --to=alan@idiocy.org \
    --cc=42836@debbugs.gnu.org \
    --cc=eggert@cs.ucla.edu \
    --cc=spd@toadstyle.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).