From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: bojohan+news@dd.chalmers.se (Johan =?utf-8?Q?Bockg=C3=A5rd?=) Newsgroups: gmane.emacs.help Subject: Re: change to try-completion behavior in 21.3? Date: Sat, 17 Dec 2005 07:49:54 +0100 Organization: Chalmers University of Technology, Sweden Message-ID: References: <1134700362.513388.325830@g49g2000cwa.googlegroups.com> <87irtopi9u.fsf-monnier+gnu.emacs.help@gnu.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1134802706 29335 80.91.229.2 (17 Dec 2005 06:58:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 17 Dec 2005 06:58:26 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Dec 17 07:58:16 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EnW0r-0005Qx-2F for geh-help-gnu-emacs@m.gmane.org; Sat, 17 Dec 2005 07:57:49 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EnW1Y-0005UR-BB for geh-help-gnu-emacs@m.gmane.org; Sat, 17 Dec 2005 01:58:32 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed1.swip.net!swipnet!newsfeed.sunet.se!news01.sunet.se!129.16.116.9.MISMATCH!dd.chalmers.se!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 28 Original-NNTP-Posting-Host: linus003.dd.chalmers.se Mail-Copies-To: never User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:0QKvVmKU1KauyamzprX4IdBUbh4= Original-Xref: shelby.stanford.edu gnu.emacs.help:136350 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:32010 Archived-At: Stefan Monnier writes: >> Why should it ever return the capital letter W? > > Because in your completion table, you have "W". "w" was also in the table. This change revision 1.237 date: 2002-04-09 19:28:42 +0000; author: monnier; state: Exp; lines: +89 -47 [...] (Ftry_completion): Allow lambda forms and lists of strings for `alist'. Short-circuit the search as soon as it "failed". [...] added this piece of code (approximately) if (matchsize <= SCHARS (string) && matchcount > 1) /* No need to look any further. */ break; When completion-ignore-case is t this doesn't necessarily find the best match _including case_ (AFAICS). -- Johan Bockgård