[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Reading directory names with read-file-name
From: |
Paul Eggert |
Subject: |
Re: Reading directory names with read-file-name |
Date: |
Sat, 18 May 2002 16:00:12 -0700 (PDT) |
> From: address@hidden (Kim F. Storm)
> User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2.50
>
> I propose to add a sixth argument READ-DIR to read-file-name
> which indicates that we are reading a directory name, and
> not just any file name.
More generally, shouldn't the READ-DIR argument specify constraints on
the desired file type? For example, in many instances you want a
non-directory.
How about allowing READ-DIR to be any predicate, so that the invoker
of read-file-name can filter file names in arbitrary ways? I suspect
that this would subsume read-file-name's existing MUSTMATCH argument
to some extent, since MUSTMATCH=t would be roughly equivalent to
READ-DIR=file-exists-p, but I can't think of a cleaner extension
offhand.
- Reading directory names with read-file-name, Kim F. Storm, 2002/05/18
- Re: Reading directory names with read-file-name, Stefan Monnier, 2002/05/18
- Re: Reading directory names with read-file-name,
Paul Eggert <=
- Re: Reading directory names with read-file-name, Richard Stallman, 2002/05/19
- Re: Reading directory names with read-file-name, Kim F. Storm, 2002/05/19
- Re: Reading directory names with read-file-name, Kim F. Storm, 2002/05/19
- Re: Reading directory names with read-file-name, Richard Stallman, 2002/05/20
- Re: Reading directory names with read-file-name, Kim F. Storm, 2002/05/23
- Re: Reading directory names with read-file-name, Stefan Monnier, 2002/05/23
- Re: Reading directory names with read-file-name, Kim F. Storm, 2002/05/23
- Re: Reading directory names with read-file-name, Richard Stallman, 2002/05/24
- Re: Reading directory names with read-file-name, Stefan Monnier, 2002/05/24
- Re: Reading directory names with read-file-name, Kim F. Storm, 2002/05/28