GNU bug report logs -
#50187
28.0.50; tramp is called from calendar
Previous Next
Reported by: sds <at> gnu.org
Date: Tue, 24 Aug 2021 15:07:02 UTC
Severity: normal
Tags: moreinfo
Found in version 28.0.50
Done: Stefan Kangas <stefankangas <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> Cc: Michael Heerdegen <michael_heerdegen <at> web.de>, 50187 <at> debbugs.gnu.org,
> Lars Ingebrigtsen <larsi <at> gnus.org>, Michael Albinus <michael.albinus <at> gmx.de>
> From: Sam Steingold <sds <at> gnu.org>
> Date: Fri, 16 Sep 2022 14:45:25 -0400
>
> (setq-default default-directory (expand-file-name "~/"))
>
> >> ... mostly because I was still hoping for a fix in Emacs ;-(
> >
> > It's not clear to me what the "fix" would be here, can you explain
> > what you have in mind?
>
> 1. `default-directory' should have a global default, see above
But using "~/" as that default is IMO wrong, as it contradicts what
expand-file-name does when default-directory is nil: it uses "/" on
Posix systems and the root of the Emacs installation on MS-Windows.
If we want default-directory to have a global default (and I'm not yet
convinced that it's a good idea), we should at least use the same
value as expand-file-name does, otherwise we'll have bugs.
> 2. new buffers should inherit `default-directory' from the global
> default instead of the previous buffer from which this one was created.
I question the validity of this assertion. It seems to be based on a
particular class of use cases, while its effect is over-reaching.
Consider, for example, the frequent paradigm of using
with-temp-buffer.
This bug report was last modified 1 year and 184 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.