GNU bug report logs -
#36502
27.0.50; infinite loop in file-name-case-insensitive-p
Previous Next
Reported by: Daniel Sutton <dan <at> dpsutton.com>
Date: Thu, 4 Jul 2019 16:53:02 UTC
Severity: normal
Found in version 27.0.50
Done: Ken Brown <kbrown <at> cornell.edu>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[[[ To any NSA and FBI agents reading my email: please consider ]]]
[[[ whether defending the US Constitution against all enemies, ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]
> (let ((default-directory "~foo"))
> (expand-file-name "bar"))
> => "~foo/~foo/bar"
That is not right, but I think "~foo/bar" would be right.
> Part of what's confusing here is that file-name-absolute-p returns
> t on file names starting with "~", even though its doc string
> explicitly states that such a file name is not absolute.
This contradiction is not good. But I would like to point out
that, in a certain sesne, a name starting with ~ is absolute.
It is not relative to the current directory.
We may have a problem with two different meanings of "absolute",
each being pertinent to some situations.
> My inclination is that if default-directory starts with "~", then we should try
> to convert it to a (truly) absolute file name.
There may be some circumstances where that is better, but not always.
--
Dr Richard Stallman
President, Free Software Foundation (https://gnu.org, https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)
This bug report was last modified 5 years and 304 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.