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: `completion-in-region' Date: Sun, 11 Apr 2010 11:05:01 -0700 Message-ID: <493575A8A83B43BCB1AF49E239599A77@us.oracle.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1271009117 29820 80.91.229.12 (11 Apr 2010 18:05:17 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 11 Apr 2010 18:05:17 +0000 (UTC) Cc: emacs-devel@gnu.org To: "'Stefan Monnier'" , "'Leo'" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Apr 11 20:05:13 2010 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.69) (envelope-from ) id 1O11Ww-00044I-KC for ged-emacs-devel@m.gmane.org; Sun, 11 Apr 2010 20:05:10 +0200 Original-Received: from localhost ([127.0.0.1]:47604 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O11Wv-0000Nn-U0 for ged-emacs-devel@m.gmane.org; Sun, 11 Apr 2010 14:05:09 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O11Ws-0000ND-3k for emacs-devel@gnu.org; Sun, 11 Apr 2010 14:05:06 -0400 Original-Received: from [140.186.70.92] (port=44587 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O11Wp-0000M0-Vr for emacs-devel@gnu.org; Sun, 11 Apr 2010 14:05:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O11Wn-0008Nj-NY for emacs-devel@gnu.org; Sun, 11 Apr 2010 14:05:03 -0400 Original-Received: from acsinet11.oracle.com ([141.146.126.233]:36287) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O11Wn-0008MH-Ib for emacs-devel@gnu.org; Sun, 11 Apr 2010 14:05:01 -0400 Original-Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by acsinet11.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id o3BI4uSk012914 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 11 Apr 2010 18:04:57 GMT Original-Received: from acsmt354.oracle.com (acsmt354.oracle.com [141.146.40.154]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o3BENjWN022857; Sun, 11 Apr 2010 18:04:55 GMT Original-Received: from abhmt003.oracle.com by acsmt355.oracle.com with ESMTP id 151821231271009093; Sun, 11 Apr 2010 11:04:53 -0700 Original-Received: from dradamslap1 (/141.144.72.51) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sun, 11 Apr 2010 11:04:53 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: AcrZjFSCz5hdFAUkSGWZKzkLQ6JnPwAE18YA X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Source-IP: acsmt354.oracle.com [141.146.40.154] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090202.4BC20F48.003F:SCFMA4539814,ss=1,fgs=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:123485 Archived-At: > > BTW, some modern text editors (such as textmate) have > > started offering fuzzy completion as default. It is a bad default, IMO. Icicles offers it, and you can make it the default if you want (or switch to it with a key press), but I do not impose it as the default. (I don't even recommend using it, in general.) > Interesting. Do you have any details of what is meant by "fuzzy"? TextMate's default matching (it has no name AFAIK) is the same as Ido's "flex" matching and Icicles's "scatter" matching. It is a poor-man's fuzzy matching (not fuzzy matching in the more usual sense). (TextMate uses this matching only for file names, I believe.) How it works: Input characters are matched in order against completion candidates, but possibly with intervening characters. That is, to match, each input character must also be in the candidate, and the character order must be respected. I call it "scatter" or "spread" matching because your input chars are spread throughout the candidate being matched, keeping their order. This page describes scatter matching and other kinds of ~fuzzy matching in the context of completion: http://www.emacswiki.org/emacs/Icicles_-_Fuzzy_Completion