From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: read-directory-name, the unloved Date: Sat, 12 Feb 2011 15:44:58 +0100 Message-ID: References: <874o8bio30.fsf@gmail.com> <87hbcbt0hm.fsf@gmail.com> <87lj1ly2rq.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1297521915 17288 80.91.229.12 (12 Feb 2011 14:45:15 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 12 Feb 2011 14:45:15 +0000 (UTC) Cc: Stefan Monnier , emacs-devel@gnu.org To: Antoine Levitt Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Feb 12 15:45:10 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PoGik-0002py-9Q for ged-emacs-devel@m.gmane.org; Sat, 12 Feb 2011 15:45:10 +0100 Original-Received: from localhost ([127.0.0.1]:58296 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PoGij-00067v-LF for ged-emacs-devel@m.gmane.org; Sat, 12 Feb 2011 09:45:09 -0500 Original-Received: from [140.186.70.92] (port=40651 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PoGid-00067k-7e for emacs-devel@gnu.org; Sat, 12 Feb 2011 09:45:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PoGib-0004kl-V9 for emacs-devel@gnu.org; Sat, 12 Feb 2011 09:45:02 -0500 Original-Received: from mail-out.m-online.net ([212.18.0.9]:33101) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PoGib-0004jG-N2 for emacs-devel@gnu.org; Sat, 12 Feb 2011 09:45:01 -0500 Original-Received: from frontend1.mail.m-online.net (unknown [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 36B831C0F586; Sat, 12 Feb 2011 15:44:59 +0100 (CET) Original-Received: from localhost (dynscan1.mnet-online.de [192.168.8.164]) by mail.m-online.net (Postfix) with ESMTP id 31DFC1C001B4; Sat, 12 Feb 2011 15:44:59 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Original-Received: from mail.mnet-online.de ([192.168.8.180]) by localhost (dynscan1.mail.m-online.net [192.168.8.164]) (amavisd-new, port 10024) with ESMTP id pGoDT2skEwxg; Sat, 12 Feb 2011 15:44:58 +0100 (CET) Original-Received: from igel.home (ppp-88-217-126-119.dynamic.mnet-online.de [88.217.126.119]) by mail.mnet-online.de (Postfix) with ESMTP; Sat, 12 Feb 2011 15:44:58 +0100 (CET) Original-Received: by igel.home (Postfix, from userid 501) id 1F171CA2A0; Sat, 12 Feb 2011 15:44:58 +0100 (CET) X-Yow: So this is what it feels like to be potato salad In-Reply-To: <87lj1ly2rq.fsf@gmail.com> (Antoine Levitt's message of "Sat, 12 Feb 2011 11:18:33 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2.93 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Received-From: 212.18.0.9 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:135946 Archived-At: Antoine Levitt writes: > Read-directory-name is basically a wrapper on read-file-name, using > file-directory-p as PREDICATE. So if anything else, read-directory-name > is more restrictive than read-file-name. In any case, since MUSTMATCH > is nil, there's no obligation to choose a real file/directory, so > PREDICATE is only used for completion purposes. dired accepts more than just a directory as argument, and I would be annoyed if I would not be able complete a non-directory. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."