[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
enforced
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.
- Re: locate-file in Emacs, (continued)
- Re: locate-file in Emacs, Miles Bader, 2002/04/18
- Re: locate-file in Emacs, Stefan Monnier, 2002/04/18
- Re: locate-file in Emacs, Hrvoje Niksic, 2002/04/18
- Re: locate-file in Emacs, Stefan Monnier, 2002/04/18
- Re: locate-file in Emacs, Eli Zaretskii, 2002/04/18
- Re: locate-file in Emacs, Hrvoje Niksic, 2002/04/18
- Re: locate-file in Emacs, Hrvoje Niksic, 2002/04/18
- Re: locate-file in Emacs, Stefan Monnier, 2002/04/18
- Re: locate-file in Emacs, Hrvoje Niksic, 2002/04/25
- Re: locate-file in Emacs, Stefan Monnier, 2002/04/25
- Re: locate-file in Emacs,
Richard Stallman <=
- Re: locate-file in Emacs, Miles Bader, 2002/04/18
- Re: locate-file in Emacs, Hrvoje Niksic, 2002/04/18
- Re: locate-file in Emacs, Miles Bader, 2002/04/18
- Re: locate-file in Emacs, Hrvoje Niksic, 2002/04/18
- Re: locate-file in Emacs, Miles Bader, 2002/04/18