From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: Reading directory names with read-file-name Date: 20 May 2002 02:50:26 +0200 Sender: emacs-devel-admin@gnu.org Message-ID: <5xd6vrzlpp.fsf@kfs2.cua.dk> References: <5xy9eh820e.fsf@kfs2.cua.dk> <200205182300.g4IN0Cm00753@shade.twinsun.com> <200205191940.g4JJeRw24012@aztec.santafe.edu> <5xu1p3zput.fsf@kfs2.cua.dk> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1021853448 12033 127.0.0.1 (20 May 2002 00:10:48 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 20 May 2002 00:10:48 +0000 (UTC) Cc: eggert@twinsun.com, emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 179alE-00037y-00 for ; Mon, 20 May 2002 02:10:48 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 179ayu-0006R5-00 for ; Mon, 20 May 2002 02:24:57 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 179aSj-0006dT-00; Sun, 19 May 2002 19:51:41 -0400 Original-Received: from mail.filanet.dk ([195.215.206.179]) by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian)) id 179aQp-0006Z5-00; Sun, 19 May 2002 19:49:43 -0400 Original-Received: from kfs2.cua.dk.cua.dk (unknown [10.1.82.3]) by mail.filanet.dk (Postfix) with SMTP id 97EEE7C016; Sun, 19 May 2002 23:49:41 +0000 (GMT) Original-To: rms@gnu.org In-Reply-To: <5xu1p3zput.fsf@kfs2.cua.dk> Original-Lines: 31 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2.50 Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:4151 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:4151 storm@cua.dk (Kim F. Storm) writes: > Richard Stallman 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 http://www.cua.dk