From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Nordl=F6w?= Newsgroups: gmane.emacs.help Subject: read-file-name() doesn't care about PREDICATE argument Date: Wed, 17 Mar 2010 04:49:41 -0700 (PDT) Organization: http://groups.google.com Message-ID: <77ece43f-8bb2-4d5b-be1d-e960a566562c@o30g2000yqb.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1272994607 24383 80.91.229.12 (4 May 2010 17:36:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 4 May 2010 17:36:47 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 04 19:36:46 2010 connect(): No such file or directory Return-path: Envelope-to: geh-help-gnu-emacs@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 1O9M2x-0003Af-W6 for geh-help-gnu-emacs@m.gmane.org; Tue, 04 May 2010 19:36:40 +0200 Original-Received: from localhost ([127.0.0.1]:43934 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O9M2x-0005Cy-8U for geh-help-gnu-emacs@m.gmane.org; Tue, 04 May 2010 13:36:39 -0400 Original-Path: usenet.stanford.edu!postnews.google.com!o30g2000yqb.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 23 Original-NNTP-Posting-Host: 150.227.15.253 Original-X-Trace: posting.google.com 1268826582 28889 127.0.0.1 (17 Mar 2010 11:49:42 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 17 Mar 2010 11:49:42 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: o30g2000yqb.googlegroups.com; posting-host=150.227.15.253; posting-account=ytJKAgoAAAA1tg4ScoRszebXiIldA5vg User-Agent: G2/1.0 X-HTTP-Via: 1.1 ip1-w.foi.se:8080 (IronPort-WSA/6.3.3-015) X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.3pre) Gecko/20100316 Ubuntu/9.10 (karmic) Namoroka/3.6.3pre, gzip(gfe), gzip(gfe) Original-Xref: usenet.stanford.edu gnu.emacs.help:177485 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:72992 Archived-At: Why is the argument PREDICATE not used in read-file-name? For example (read-file-name "Find file: " "~/" nil t nil (lambda (filename) nil)) incorrectly completes everything for me when it shouldn't complete anything at all since the PREDICATE function always returns nil. I have also tried the Icicles version (icicle-read-file-name "Find file: " "~/" nil t nil (lambda (filename) nil)) but it behaves exactly the same. The following code works as expected, though: (let ((icicle-must-pass-predicate (lambda (filename) nil))) (icicle-read-file-name "Find file: " "~/" nil t nil (lambda (filename) nil))) Why doesn't first two example like the last? And why does the icicle version provide this extra variable? It smells like a bug or a missing feature. /Nordl=F6w