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 11:22: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 1186943363 23298 80.91.229.12 (12 Aug 2007 18:29:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 12 Aug 2007 18:29:23 +0000 (UTC) To: "Development of Aquamacs Emacs" , "emacs- devel" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Aug 12 20:29:21 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 1IKIBk-0005aO-8L for ged-emacs-devel@m.gmane.org; Sun, 12 Aug 2007 20:29:20 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IKIBj-0000j8-G5 for ged-emacs-devel@m.gmane.org; Sun, 12 Aug 2007 14:29:19 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IKIBg-0000hA-7w for emacs-devel@gnu.org; Sun, 12 Aug 2007 14:29:16 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IKIBd-0000gy-So for emacs-devel@gnu.org; Sun, 12 Aug 2007 14:29:14 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IKIBd-0000gv-LV for emacs-devel@gnu.org; Sun, 12 Aug 2007 14:29: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 1IKIBd-0002VN-IN for emacs-devel@gnu.org; Sun, 12 Aug 2007 14:29: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 l7CINTGc032546; Sun, 12 Aug 2007 13:23:29 -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 l7CHh19v010228; Sun, 12 Aug 2007 12:23:28 -0600 Original-Received: from dhcp-amer-csvpn-gw2-141-144-72-211.vpn.oracle.com by acsmt350.oracle.com with ESMTP id 3115874881186942957; Sun, 12 Aug 2007 11:22: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 In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138 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:76385 Archived-At: > I've got several files in my directory: > foo.tex foo.aux foo.pdf foo.1.tex bar.txt > > I do: C-x C-f fo > > What happens then is that only "foo." is in the minibuffer, and a > buffer visiting the non-existant file of that name is visited. I disagree with your proposal, David. Being able to use lax completion, for file names and for other things, is very useful. I would not want to see that behavior changed. However, what I think should happen in the case you mention, and what happens by default in Icicles, is that TAB immediately displays *Completions*, which lets you know that completion is incomplete and lets you see the matching candidate names of the existing files. In Icicles, an option, `icicle-TAB-shows-candidates-flag', controls this. Non-nil (the default value) means that TAB always shows the matching candidates; nil means follow the standard Emacs behavior. But in neither case (nil or non-nil) is lax completion foregone and strict completion imposed. I would not want C-x C-f to assume that you want to visit an existing file.