From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Allow non-matching input, but require confirmation Date: Fri, 29 Jun 2007 09:46:03 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1183124777 28737 80.91.229.12 (29 Jun 2007 13:46:17 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 29 Jun 2007 13:46:17 +0000 (UTC) Cc: emacs-devel@gnu.org To: "Herbert Euler" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 29 15:46:16 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 1I4Gnf-0004YB-9A for ged-emacs-devel@m.gmane.org; Fri, 29 Jun 2007 15:46:15 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I4Gne-0003EO-2H for ged-emacs-devel@m.gmane.org; Fri, 29 Jun 2007 09:46:14 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I4GnZ-0003CX-TR for emacs-devel@gnu.org; Fri, 29 Jun 2007 09:46:09 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I4GnX-00039g-T5 for emacs-devel@gnu.org; Fri, 29 Jun 2007 09:46:08 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I4GnX-00039R-LP for emacs-devel@gnu.org; Fri, 29 Jun 2007 09:46:07 -0400 Original-Received: from tomts10.bellnexxia.net ([209.226.175.54] helo=tomts10-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1I4GnX-0008Sc-0O for emacs-devel@gnu.org; Fri, 29 Jun 2007 09:46:07 -0400 Original-Received: from pastel.home ([70.55.146.128]) by tomts10-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20070629134603.HXWT9197.tomts10-srv.bellnexxia.net@pastel.home> for ; Fri, 29 Jun 2007 09:46:03 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id BA5CA7F34; Fri, 29 Jun 2007 09:46:03 -0400 (EDT) In-Reply-To: (Herbert Euler's message of "Fri\, 29 Jun 2007 16\:44\:32 +0800") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) X-detected-kernel: Solaris 8 (1) 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:74031 Archived-At: > This strategy seems to encourage valid completions. Namely, when > valid completions are avaliable and inputed, no confirmation is made. > Otherwise, confirmation is made. If the input can complete to an > element of collection to make a valid completion, but is not a member > of collection, should we "encourage" the valid completion by > completing the input, or confirm the non-matching input as an invalid > completion? No, we don't want to complete at all, we just want to let the user know when he hits RET whether her input is in the list of completions or not. For find-file, this amounts to warning the user that she's about to open a non-existing file, which may be exactly what she wants to do, but may also be just the result of a typo (in my case, in 90% of the cases, it's a TAB expansion that completed to "foo." instead of one of foo.c or foo.h, in 9% of the cases it's a typo and in the 1% percent it's really what I want to do). Stefan