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 19:52:38 +0100 Message-ID: <82E0660A-D6FB-4EDD-B44D-D4F96E175972@gmail.com> 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 1186944772 27158 80.91.229.12 (12 Aug 2007 18:52:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 12 Aug 2007 18:52:52 +0000 (UTC) Cc: emacs- devel To: Development of Aquamacs Emacs Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Aug 12 20:52:51 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 1IKIYV-0002sw-3I for ged-emacs-devel@m.gmane.org; Sun, 12 Aug 2007 20:52:51 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IKIYU-000702-KC for ged-emacs-devel@m.gmane.org; Sun, 12 Aug 2007 14:52:50 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IKIYP-0006xR-My for emacs-devel@gnu.org; Sun, 12 Aug 2007 14:52:45 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IKIYO-0006wZ-UP for emacs-devel@gnu.org; Sun, 12 Aug 2007 14:52:45 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IKIYO-0006wO-PJ for emacs-devel@gnu.org; Sun, 12 Aug 2007 14:52:44 -0400 Original-Received: from fk-out-0910.google.com ([209.85.128.190]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IKIYO-0006II-MX for emacs-devel@gnu.org; Sun, 12 Aug 2007 14:52:44 -0400 Original-Received: by fk-out-0910.google.com with SMTP id 19so1231882fkr for ; Sun, 12 Aug 2007 11:52:43 -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=UZdX44eUL9o063uwoIb1MFxOrPNpy1LGUZMz7dmkS0U76sSAH59d2cPsLpb//ejq0P18LNR8nGAlBGu7dv6+BWuBBY3Tr01R2Stz9kMkv289Zz1RkG8Y0Ewoj90+NCGXCz9Yhmlu7emuPP49ywsbSIJhWhtUzyVvkJMGwE+yGKc= 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=muv7b7qJMNcNs0Q9glCurNjgn+YMTCfT4LRseWvbRqqy92YCSCxHCnqwy1PMV1F8EWDQO1bElkBpG2/maeM9CEQg1iZZPRlwzBH7/C/n3AFJU6TifYJ94RqfCt1M3azyCvG0JkUEHqQURzhNbxMUnFoqU/te4syInrCToe7Z4B4= Original-Received: by 10.82.105.13 with SMTP id d13mr2760592buc.1186944762607; Sun, 12 Aug 2007 11:52:42 -0700 (PDT) Original-Received: from ?10.5.5.200? ( [84.9.229.35]) by mx.google.com with ESMTPS id 6sm2576713nfv.2007.08.12.11.52.41 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 12 Aug 2007 11:52:41 -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:76387 Archived-At: On 12 Aug 2007, at 19:22, Drew Adams wrote: >> 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. My proposal was not to change completion. My proposal was to not accept a RET after an incomplete completion. (But a RET RET after an incomplete completion would do exactly what the RET does.) Where do you think is incomplete completion and entering of the incomplete string useful? > 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. I like the current behavior - simply because you know what files are there (or what you want) anyways. No need to see *Completions*. > 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. Again, that's not what I said. I said that only if completion is used, we assume (temporarily) that an existing file is to be visited. If the user completes the file name manually, then that is fine and it can be a new file.