[Top][All Lists]

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

Re: Reading directory names with read-file-name

From: Kim F. Storm
Subject: Re: Reading directory names with read-file-name
Date: 20 May 2002 02:50:26 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2.50

address@hidden (Kim F. Storm) writes:

> Richard Stallman <address@hidden> writes:
> >     How about allowing READ-DIR to be any predicate, so that the invoker
> >     of read-file-name can filter file names in arbitrary ways?
> > 
> > This could be made consistent with the new locate-file function.
> > 
> >       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.
> > 
> > This suggests that we should redefine the MUSTMATCH argument
> > rather than add a new one.
> [...] 
> I'm not sure how to proceed.  Please advise!

I've looked some more on this, and the file-name-handlers (e.g.  used
by ange-ftp) further complicates chaning the API for read-file-name,
read-file-name-internal, and file-name-all-completions, as well as
introducting a read-directory-name function.

Hm, I see to have opened a can of worms here :-)

Kim F. Storm <address@hidden> http://www.cua.dk

reply via email to

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