From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#6299: In read-file-name: (args-out-of-range "c:" 0 3) Date: Sun, 30 May 2010 10:05:49 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1275229666 30511 80.91.229.12 (30 May 2010 14:27:46 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 30 May 2010 14:27:46 +0000 (UTC) Cc: 6299@debbugs.gnu.org To: Lennart Borgman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun May 30 16:27:45 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 1OIjUO-0004ce-MB for geb-bug-gnu-emacs@m.gmane.org; Sun, 30 May 2010 16:27:44 +0200 Original-Received: from localhost ([127.0.0.1]:47407 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OIjUO-0006kF-0s for geb-bug-gnu-emacs@m.gmane.org; Sun, 30 May 2010 10:27:44 -0400 Original-Received: from [140.186.70.92] (port=43825 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OIjUG-0006fq-Qg for bug-gnu-emacs@gnu.org; Sun, 30 May 2010 10:27:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OIjUF-0001nK-VQ for bug-gnu-emacs@gnu.org; Sun, 30 May 2010 10:27:36 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45437) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OIjUF-0001nG-U9 for bug-gnu-emacs@gnu.org; Sun, 30 May 2010 10:27:35 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OIj9N-0000uT-QA; Sun, 30 May 2010 10:06:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier 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 14:06: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.12752283583491 (code B ref 6299); Sun, 30 May 2010 14:06:01 +0000 Original-Received: (at 6299) by debbugs.gnu.org; 30 May 2010 14:05:58 +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 1OIj9K-0000uG-0I for submit@debbugs.gnu.org; Sun, 30 May 2010 10:05:58 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OIj9H-0000uA-EL for 6299@debbugs.gnu.org; Sun, 30 May 2010 10:05:56 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEAKYNAkxMCpdY/2dsb2JhbACeNHK9R4UWBIxM X-IronPort-AV: E=Sophos;i="4.53,327,1272859200"; d="scan'208";a="66008551" Original-Received: from 76-10-151-88.dsl.teksavvy.com (HELO pastel.home) ([76.10.151.88]) by ironport2-out.pppoe.ca with ESMTP; 30 May 2010 10:05:49 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 42C9481F8; Sun, 30 May 2010 10:05:49 -0400 (EDT) In-Reply-To: (Lennart Borgman's message of "Sun, 30 May 2010 15:39:00 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 30 May 2010 10:06: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:37420 Archived-At: > I am looking around at the code a bit. I do not understand the comment > in completion--file-name-table: > (cond > ((eq (car-safe action) 'boundaries) > ;; For the boundaries, we can't really delegate to > ;; completion-file-name-table and then fix them up, because it > ;; would require us to track the relationship between `str' and > ;; `string', which is difficult. And in any case, if > ;; substitute-in-file-name turns "fo-$TO-ba" into "fo-o/b-ba", there's > ;; no way for us to return proper boundaries info, because the > ;; boundary is not (yet) in `string'. > AFAICS it is doing exactly the same as completion-file-name-table > here. What am I missing? You're missing that "delegate to completion-file-name-table" means calling substitute-in-file-name first and then completion-file-name-table, so it wouldn't do the same. But yes, we could call completion-file-name-table directly without going through substitute-in-file-name. The reason why I don't do that is mostly historical (I first started to do something more clever which didn't work). > BTW the doc string for action in completing read etc should be fixed. I don't know what you mean here. Stefan