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: 24 May 2002 00:04:29 +0200 Sender: emacs-devel-admin@gnu.org Message-ID: <5xsn4iv7v6.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> <5xd6vrzlpp.fsf@kfs2.cua.dk> <200205202133.g4KLXgB25956@aztec.santafe.edu> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1022187967 7932 127.0.0.1 (23 May 2002 21:06:07 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 23 May 2002 21:06:07 +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 17Azmh-00023o-00 for ; Thu, 23 May 2002 23:06:07 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17B02G-0005ak-00 for ; Thu, 23 May 2002 23:22:12 +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 17Azmp-0007rs-00; Thu, 23 May 2002 17:06:15 -0400 Original-Received: from mail.filanet.dk ([195.215.206.179]) by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian)) id 17AzkU-0007h3-00; Thu, 23 May 2002 17:03:50 -0400 Original-Received: from kfs2.cua.dk.cua.dk (unknown [10.1.82.3]) by mail.filanet.dk (Postfix) with SMTP id 4D1917C016; Thu, 23 May 2002 21:03:45 +0000 (GMT) Original-To: rms@gnu.org In-Reply-To: <200205202133.g4KLXgB25956@aztec.santafe.edu> Original-Lines: 29 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:4307 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:4307 Richard Stallman writes: > 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. > > How so? My concern is that existing file-name-handlers for read-file-name are written to match the current API for that function, and they are expected to "mirror" the behaviour of read-file-name for any given set of arguments. Now, if we change the API for read-file-name, e.g. by changing the interpretation of the MUSTMATCH argument or adding a PREDICATE argument, the existing file-name-handlers may no longer work correctly. And if I add a new read-directory-name function, the existing file-name-handler for read-file-name will not be called when reading a directory name; instead a new file-name-handler will be needed for read-directory-name (which is simple), but the existing packages which install file-name-handlers for read-file-name will need to be extended with a file-name-handler for read-directory-name as well. So it's not trivial to change the API... -- Kim F. Storm http://www.cua.dk