From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: C-x C-f, Tab (in)completion and visiting the wrong, new files Date: Sun, 12 Aug 2007 14:48:23 -0700 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1186955421 23802 80.91.229.12 (12 Aug 2007 21:50:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 12 Aug 2007 21:50:21 +0000 (UTC) Cc: Stefan Monnier , emacs- devel To: "David Reitter" , "Development of Aquamacs Emacs" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Aug 12 23:50:19 2007 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.50) id 1IKLKE-0004Ot-2B for ged-emacs-devel@m.gmane.org; Sun, 12 Aug 2007 23:50:18 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IKLKD-0007Co-Nj for ged-emacs-devel@m.gmane.org; Sun, 12 Aug 2007 17:50:17 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IKLKA-00079G-IV for emacs-devel@gnu.org; Sun, 12 Aug 2007 17:50:14 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IKLK9-00078V-VB for emacs-devel@gnu.org; Sun, 12 Aug 2007 17:50:14 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IKLK9-000784-Qd for emacs-devel@gnu.org; Sun, 12 Aug 2007 17:50:13 -0400 Original-Received: from agminet01.oracle.com ([141.146.126.228]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IKLK9-0002xD-Dv for emacs-devel@gnu.org; Sun, 12 Aug 2007 17:50:13 -0400 Original-Received: from rgmgw2.us.oracle.com (rgmgw2.us.oracle.com [138.1.186.111]) by agminet01.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id l7CLndqP031392; Sun, 12 Aug 2007 16:49:39 -0500 Original-Received: from acsmt350.oracle.com (acsmt350.oracle.com [141.146.40.150]) by rgmgw2.us.oracle.com (Switch-3.2.4/Switch-3.2.4) with ESMTP id l7CLhYgM023350; Sun, 12 Aug 2007 15:49:38 -0600 Original-Received: from dhcp-amer-csvpn-gw2-141-144-72-129.vpn.oracle.com by acsmt351.oracle.com with ESMTP id 3116170321186955317; Sun, 12 Aug 2007 14:48:37 -0700 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138 In-Reply-To: X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-Detected-Kernel: Linux 2.4-2.6 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:76401 Archived-At: > > In that case, you want TAB to complete only against existing files, > > no? Then why not bind `file-file-existing'? That's what it's for. > > I think I suggested this originally. However, this would prevent > users from creating new buffers as intended, C-x b has lax completion. It does not, however, follow `auto-mode-alist'. But see the recent discussion about adding something similar for buffer names (`buffer-auto-mode-alist'). > or it would require us > to come up with a new (and short) key combination. Just rebind C-x C-f, if that's your preference. > I also thought that the input errors with the incomplete matches may > be part of a common pattern that does not just apply to file names. > In other completion cases where there is an ambiguity (e.g., M-x tex > RET), the input is not accepted, and if there is no ambiguity, the > input is autocompleted (e.g., M-x text RET). Those are cases of strict completion, where the completed input must match a candidate. They are equivalent to passing a non-nil REQUIRE-MATCH arg to `completing-read'. `find-file' provides lax completion, and `find-file-existing' provides strict completion - both are available.