From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Stefan Monnier" Newsgroups: gmane.emacs.devel Subject: Re: Reading directory names with read-file-name Date: Sat, 18 May 2002 18:47:07 -0400 Sender: emacs-devel-admin@gnu.org Message-ID: <200205182247.g4IMl7k14164@rum.cs.yale.edu> References: <5xy9eh820e.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 1021762078 13588 127.0.0.1 (18 May 2002 22:47:58 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 18 May 2002 22:47:58 +0000 (UTC) Cc: 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 179CzW-0003X3-00 for ; Sun, 19 May 2002 00:47:58 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 179DCh-0004kk-00 for ; Sun, 19 May 2002 01:01:35 +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 179Czj-0005Ew-00; Sat, 18 May 2002 18:48:11 -0400 Original-Received: from rum.cs.yale.edu ([128.36.229.169]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 179Cyl-0005Dd-00 for ; Sat, 18 May 2002 18:47:11 -0400 Original-Received: (from monnier@localhost) by rum.cs.yale.edu (8.11.6/8.11.6) id g4IMl7k14164; Sat, 18 May 2002 18:47:07 -0400 X-Mailer: exmh version 2.4 06/23/2000 with nmh-1.0.4 Original-To: storm@cua.dk (Kim F. Storm) 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:4105 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:4105 > I propose to add a sixth argument READ-DIR to read-file-name I agree that we need some way to implement read-directory-name, but I find those functions with never-ending lists of arguments rather annoying and would rather not add yet-another-one. > The completion in read-file-name-internal should (somehow) > be aware of this and only return completions which are > directories (i.e. having a trailing /). The "somehow" part is rather interesting. A seemingly trivial way would be to use the `predicate' argument passed to completing-read (and then to read-file-name-internal), except that that argument is already (ab)used to pass the current-directory to use when completing. Stefan