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: Mon, 13 Aug 2007 10:42:48 -0700 Message-ID: References: <60637.128.165.123.18.1187025056.squirrel@webmail.lanl.gov> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1187027194 6376 80.91.229.12 (13 Aug 2007 17:46:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 13 Aug 2007 17:46:34 +0000 (UTC) Cc: Development of Aquamacs Emacs , Stefan Monnier , emacs- devel To: Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 13 19:46:23 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 1IKdzg-0002tf-Dw for ged-emacs-devel@m.gmane.org; Mon, 13 Aug 2007 19:46:20 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IKdzf-0005S0-VI for ged-emacs-devel@m.gmane.org; Mon, 13 Aug 2007 13:46:19 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IKdzc-0005Ro-VQ for emacs-devel@gnu.org; Mon, 13 Aug 2007 13:46:17 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IKdzb-0005R6-L5 for emacs-devel@gnu.org; Mon, 13 Aug 2007 13:46:16 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IKdzb-0005R3-Ct for emacs-devel@gnu.org; Mon, 13 Aug 2007 13:46:15 -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 1IKdza-00076W-Gn for emacs-devel@gnu.org; Mon, 13 Aug 2007 13:46:14 -0400 Original-Received: from agmgw2.us.oracle.com (agmgw2.us.oracle.com [152.68.180.213]) by agminet01.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id l7DHiUkv030650; Mon, 13 Aug 2007 12:44:30 -0500 Original-Received: from acsmt351.oracle.com (acsmt351.oracle.com [141.146.40.151]) by agmgw2.us.oracle.com (Switch-3.2.0/Switch-3.2.0) with ESMTP id l7D6AvEV006734; Mon, 13 Aug 2007 11:44:29 -0600 Original-Received: from dhcp-4op11-4op12-west-130-35-178-179.us.oracle.com by acsmt350.oracle.com with ESMTP id 3117921831187026969; Mon, 13 Aug 2007 10:42:49 -0700 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: <60637.128.165.123.18.1187025056.squirrel@webmail.lanl.gov> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138 Importance: Normal 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:76468 Archived-At: > > 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. > > 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. > > `find-file-existing' doesn't actually affect TAB; it affects RET. So it's > true that it has a desirable effect on the dyad TAB RET, but it affects > all other RETs too. By having special consideration for RET only after > TAB, we can change that dyad only. That said, I have no strong opinion > here; I just want the true distinctions between options recognized. A useful clarification, and it speaks to David's point that he wants confirmation only after completion, not in general. That is, he wants to be able to open a new file with `C-x C-f', but not using TAB RET. `buffer-auto-mode-alist' might respond to this need (use `C-x b' to create a buffer for a file with a new name, and otherwise bind `C-x C-f' to `find-file-existing'), but it would mean that users would need to customize this. Stefan's suggestion to allow an `only-after-completion' value for `find-file-confirm-nonexistent' makes the most sense. I think that would make everyone happy. (The default value of `find-file-confirm-nonexistent' should remain, nil, however, IMO.)