bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: file-readable-p returns t for empty string


From: Andreas Schwab
Subject: Re: file-readable-p returns t for empty string
Date: Tue, 26 Feb 2002 20:28:06 +0100
User-agent: Gnus/5.090005 (Oort Gnus v0.05) Emacs/21.2.50 (ia64-suse-linux)

"Järneström Jonas" <address@hidden> writes:

|> In GNU Emacs 20.6.1 (sparc-sun-solaris2.6, X toolkit)
|>  of Fri Mar  3 2000 on iris
|> configured using `configure  --with-gcc --with-pop --with-x-toolkit=lucid 
--bindir=/usr/local/bin --libexecdir=/usr/local/libexec'
|> 
|> (file-readable-p "") returns t.
|> Wouldnt nil be more appropriate since there is no filename to visit
|> (or whatever) despite the returning t?
|> Same behavior for its peers like file-exists-p an so on...

Emacs has (expand-file-name "") == (expand-file-name "."), so they are
operating on default-directory.

Andreas.

-- 
Andreas Schwab, SuSE Labs, address@hidden
SuSE GmbH, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]