From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.bugs Subject: bug#6299: In read-file-name: (args-out-of-range "c:" 0 3) Date: Sun, 30 May 2010 19:39:42 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: dough.gmane.org 1275242289 5099 80.91.229.12 (30 May 2010 17:58:09 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 30 May 2010 17:58:09 +0000 (UTC) Cc: 6299@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun May 30 19:58:03 2010 connect(): No such file or directory Return-path: Envelope-to: geb-bug-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 1OImlh-0001C3-Fi for geb-bug-gnu-emacs@m.gmane.org; Sun, 30 May 2010 19:58:00 +0200 Original-Received: from localhost ([127.0.0.1]:60671 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OImlc-0006IN-0Y for geb-bug-gnu-emacs@m.gmane.org; Sun, 30 May 2010 13:57:44 -0400 Original-Received: from [140.186.70.92] (port=51891 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OImlV-0006Gr-S9 for bug-gnu-emacs@gnu.org; Sun, 30 May 2010 13:57:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OImlU-0002Vh-9E for bug-gnu-emacs@gnu.org; Sun, 30 May 2010 13:57:37 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41721) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OImlU-0002VU-5W for bug-gnu-emacs@gnu.org; Sun, 30 May 2010 13:57:36 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OImVR-0002NQ-Pv; Sun, 30 May 2010 13:41:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lennart Borgman Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 30 May 2010 17:41:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6299 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6299-submit@debbugs.gnu.org id=B6299.12752412119123 (code B ref 6299); Sun, 30 May 2010 17:41:01 +0000 Original-Received: (at 6299) by debbugs.gnu.org; 30 May 2010 17:40:11 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OImUc-0002N6-Jr for submit@debbugs.gnu.org; Sun, 30 May 2010 13:40:10 -0400 Original-Received: from mail-gy0-f172.google.com ([209.85.160.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OImUa-0002N1-8C for 6299@debbugs.gnu.org; Sun, 30 May 2010 13:40:08 -0400 Original-Received: by gyh4 with SMTP id 4so2050796gyh.3 for <6299@debbugs.gnu.org>; Sun, 30 May 2010 10:40:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type; bh=S0Fo/dXVD37LJI7+gp2lTjZTQKFh9J3loPLbiawllhU=; b=p+TXBRjks8/YmT1Mom0XEyTVhFktlP0Hyp3NGW9NiMT1l1tf4FReiY9RjdrPya2Nfa oBkS8bUU+S70Aop8w5EbLHoX47LAshNLQPTFRn117cbRAJlmFuVt9JSggot7fmUBle/T 7CwgDrsrKHD4qr1yzRUqcIw7NrfblcoZ/Gyuo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=jBaVYTHkNYl2P1IazpX6nQPVgiwtA6ldLRqC13PpzcSvcoOGTdSokgFiflutYlIqjh NZZ9OiH1irIY8UJDndN91nRrviXVef8v2hf17fjaBQz6oXCdyn6p2bNciYgQiJgT+sWJ MSt1Q7jmY8LqHxW89GYauwl3GguYe5UtlxlO8= Original-Received: by 10.101.28.39 with SMTP id f39mr3616015anj.69.1275241203350; Sun, 30 May 2010 10:40:03 -0700 (PDT) Original-Received: by 10.100.44.20 with HTTP; Sun, 30 May 2010 10:39:42 -0700 (PDT) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 30 May 2010 13:41:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:37423 Archived-At: On Sun, May 30, 2010 at 4:05 PM, Stefan Monnier wrote: > > You're missing that "delegate to completion-file-name-table" means No, but I saw in the patch that you understood what I mean. Excuse my bad explanation, I was just convinced that you should see it. >> BTW the doc string for action in completing read etc should be fixed. > > I don't know what you mean here. I meant the argument ACTION to some function, but what exactly was I reading?? Note that my current checkout is from 2010-05-22. Here are some doc strings which makes me confused: (defun completion-table-with-predicate (table pred1 strict string pred2 action) "Make a completion table equivalent to TABLE but filtered through PRED1. PRED1 is a function of one argument which returns non-nil if and only if the argument is an element of TABLE which should be considered for completion. STRING, PRED2, and ACTION are the usual arguments to completion tables, as described in `try-completion', `all-completions', and `test-completion'. If STRICT is t, the predicate always applies; if nil it only applies if it does not reduce the set of possible completions to nothing. Note: TABLE needs to be a proper completion table which obeys predicates." There is no ACTION arg to try-completion etc. (defun complete-with-action (action table string pred) "Perform completion ACTION. STRING is the string to complete. TABLE is the completion table, which should not be a function. PRED is a completion predicate. ACTION can be one of nil, t or `lambda'." It looks like ACTION is tested against n and t but not against lambda. And I think it can have other values, since the code seems to expect something like '(boundaries ...) ...