From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Reitter Newsgroups: gmane.emacs.devel Subject: Re: C-x C-f, Tab (in)completion and visiting the wrong, new files Date: Sun, 12 Aug 2007 21:39:24 +0100 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1186951180 12403 80.91.229.12 (12 Aug 2007 20:39:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 12 Aug 2007 20:39:40 +0000 (UTC) Cc: Stefan Monnier , emacs- devel To: Development of Aquamacs Emacs Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Aug 12 22:39:37 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 1IKKDp-000478-IN for ged-emacs-devel@m.gmane.org; Sun, 12 Aug 2007 22:39:37 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IKKDp-0007hM-1T for ged-emacs-devel@m.gmane.org; Sun, 12 Aug 2007 16:39:37 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IKKDl-0007hH-6F for emacs-devel@gnu.org; Sun, 12 Aug 2007 16:39:33 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IKKDi-0007h5-QV for emacs-devel@gnu.org; Sun, 12 Aug 2007 16:39:31 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IKKDi-0007h2-Lf for emacs-devel@gnu.org; Sun, 12 Aug 2007 16:39:30 -0400 Original-Received: from fk-out-0910.google.com ([209.85.128.188]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IKKDi-0006FB-9h for emacs-devel@gnu.org; Sun, 12 Aug 2007 16:39:30 -0400 Original-Received: by fk-out-0910.google.com with SMTP id 19so1245373fkr for ; Sun, 12 Aug 2007 13:39:29 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:in-reply-to:references:mime-version:x-priority:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer; b=j6tMWM7UYv2xIiKYiha8LFTYzC3OlbCwmBT1RoXnyP4zCddZZN/SLj2n9l2Uw5TlZnJcMcnkdtmMocIYSXrhxYAYAk/UpGaFViEQpoUAS2U1RxgjfBObauT21Fh15FvT07tZvp3wRAgihm/biX2t6O08WK+N443OvogaOvdZwhw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:in-reply-to:references:mime-version:x-priority:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer; b=iOt842+4+9LV1dTtqFh/mg/UyLYYZxBuqjPwRYwE7MrBfs7Ws3lvWJSawe5WuLA2nP87srqHwQ5vPMYZJ03SqzLwxlTzxs3nF6lwqxVyC0OqowrAsY4sglrnx72KMaWpjCAYuAq7rstPQl9k3RaFFW3INmTsUvBliWVr9dQaxkc= Original-Received: by 10.86.99.9 with SMTP id w9mr4175872fgb.1186951169271; Sun, 12 Aug 2007 13:39:29 -0700 (PDT) Original-Received: from ?10.5.5.200? ( [84.9.228.220]) by mx.google.com with ESMTPS id f6sm18970507nfh.2007.08.12.13.39.27 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 12 Aug 2007 13:39:28 -0700 (PDT) In-Reply-To: X-Priority: 3 (Normal) X-Mailer: Apple Mail (2.752.2) X-Detected-Kernel: Linux 2.6 (newer, 2) 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:76394 Archived-At: On 12 Aug 2007, at 21:12, Drew Adams wrote: > If you have a habit of hitting TAB RET, then you are, in effect, > expecting > TAB to complete to a complete match, so that RET will open the > existing file > whose name matches. With that expectation, incomplete matches throw > you off. Absolutely. > 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, or it would require us to come up with a new (and short) key combination. 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).