[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: file-readable-p returns t for empty string
From: |
Eli Zaretskii |
Subject: |
Re: file-readable-p returns t for empty string |
Date: |
Thu, 28 Feb 2002 18:52:15 +0200 |
On 28 Feb 2002, David Kastrup wrote:
> The question would be what semantics about a file name being absolute
> file-name-absolute-p should be checking for, and what semantics about
> a file name being absolute expand-file-name should provide, and
> whether those are necessarily the same.
"Absolute file name" is a widely-used notion, and as such, is mostly
known to programmers, even if its exact definition is sometimes a bit
vague. An empty string is a strange file name to include in that
category, so programmers will probably not expect that.
> Currently the online docs of
> file-name-absolute-p are as vague as can be about it: they just state
> something by example, and also say that this example is only valid
> for Unix systems.
I think that's intentional: Richard didn't want system-dependent stuff in
a doc string. But that vagueness does not mean that we can add anything
we like to the definition, I think.
- Re: file-readable-p returns t for empty string, (continued)
- Re: file-readable-p returns t for empty string, Richard Stallman, 2002/02/27
- Re: file-readable-p returns t for empty string, Richard Stallman, 2002/02/27
- Re: file-readable-p returns t for empty string, David Kastrup, 2002/02/28
- Re: file-readable-p returns t for empty string, Eli Zaretskii, 2002/02/28
- Re: file-readable-p returns t for empty string, David Kastrup, 2002/02/28
- Re: file-readable-p returns t for empty string, Eli Zaretskii, 2002/02/28
- Re: file-readable-p returns t for empty string, David Kastrup, 2002/02/28
- Re: file-readable-p returns t for empty string,
Eli Zaretskii <=
- Re: file-readable-p returns t for empty string, Richard Stallman, 2002/02/28
- Re: file-readable-p returns t for empty string, David Kastrup, 2002/02/28
- Re: file-readable-p returns t for empty string, Eli Zaretskii, 2002/02/27
- Re: file-readable-p returns t for empty string, David Kastrup, 2002/02/27
- Re: file-readable-p returns t for empty string, Stefan Monnier, 2002/02/28
- Re: file-readable-p returns t for empty string, Kevin Rodgers, 2002/02/27
- Re: file-readable-p returns t for empty string, Andreas Schwab, 2002/02/27
Re: file-readable-p returns t for empty string, Andreas Schwab, 2002/02/26