emacs-devel
[Top][All Lists]
Advanced

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

Re: directory-files called with empty string


From: Thierry Volpiatto
Subject: Re: directory-files called with empty string
Date: Wed, 09 Dec 2009 18:35:11 +0100
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1.50 (gnu/linux)

Stefan Monnier <address@hidden> writes:

>>>>> is it the normal behavior of directory-files to use default-directory
>>>>> when it is called with empty string or is it a bug?
>>>> That is the normal behviour of every file related function.  It is
>>>> basically what expand-file-name defines.
>>> Indeed, although I don't think it's documented, and code had probably
>>> better not rely on it.
>> Ok i see, thank you Stefan and Andreas, maybe that should be documented, for
>> all file related functions.
>
> I prefer to keep features which are accidental undocumented, unless we
> really consider them as good features (even if we bumped into them by
> accident), in which case they can be documented and their use can
> be blessed.
Yes i understand, but it is not a good feature IMHO.
These kind of functions should return an error with empty string, as
empty string is not a valid path.
But maybe this "feature" is used somewhere?

-- 
A + Thierry Volpiatto
Location: Saint-Cyr-Sur-Mer - France




reply via email to

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