[Top][All Lists]

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

Re: locate-file in Emacs

From: Richard Stallman
Subject: Re: locate-file in Emacs
Date: Thu, 18 Apr 2002 23:25:27 -0600 (MDT)

    Based on the information here, I think I'll go ahead and implement
    the functionality on top of `openp' with just a `predicate' argument
    and without backward compatibility for `mode'.

We should support backward compatibility values of MODE such as
`executable' and `writable'.  That is a clean enough interface,
so there is no particular downside to supporting it.

We could allow predicates as alternative values for the same argument,
or we could add another optional argument PREDICATE.

    But I have one question left: should the `file-directory-p' check be 
    independently from `predicate' ?

Definitely yes--by default.  The default should be to
return only files, not directories.

There could be an additional optional argument which says "accept
directories too."  Perhaps it could also have a way to specify
that you want directories only.

reply via email to

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