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 14:12:01 -0700 Message-ID: <9EC614CB775A48A78EA0C95AD70183D4@us.oracle.com> References: <493575A8A83B43BCB1AF49E239599A77@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1271020480 973 80.91.229.12 (11 Apr 2010 21:14:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 11 Apr 2010 21:14:40 +0000 (UTC) Cc: 'Leo' , emacs-devel@gnu.org To: "'Lennart Borgman'" , "'Stefan Monnier'" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Apr 11 23:14:39 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 1O14UH-00080B-14 for ged-emacs-devel@m.gmane.org; Sun, 11 Apr 2010 23:14:37 +0200 Original-Received: from localhost ([127.0.0.1]:37959 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O14UG-0007wh-E4 for ged-emacs-devel@m.gmane.org; Sun, 11 Apr 2010 17:14:36 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O14TS-0007VB-2E for emacs-devel@gnu.org; Sun, 11 Apr 2010 17:13:46 -0400 Original-Received: from [140.186.70.92] (port=42511 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O14TQ-0007Uv-RO for emacs-devel@gnu.org; Sun, 11 Apr 2010 17:13:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O14TO-0007ff-Et for emacs-devel@gnu.org; Sun, 11 Apr 2010 17:13:44 -0400 Original-Received: from acsinet11.oracle.com ([141.146.126.233]:26089) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O14TO-0007fV-A2 for emacs-devel@gnu.org; Sun, 11 Apr 2010 17:13:42 -0400 Original-Received: from rcsinet13.oracle.com (rcsinet13.oracle.com [148.87.113.125]) by acsinet11.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id o3BLDc2d022642 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 11 Apr 2010 21:13:40 GMT Original-Received: from acsmt355.oracle.com (acsmt355.oracle.com [141.146.40.155]) by rcsinet13.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o3BFAOa9024912; Sun, 11 Apr 2010 21:13:37 GMT Original-Received: from abhmt015.oracle.com by acsmt354.oracle.com with ESMTP id 151930261271020312; Sun, 11 Apr 2010 14:11:52 -0700 Original-Received: from dradamslap1 (/141.144.72.51) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sun, 11 Apr 2010 14:11:52 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: AcrZssQL7wuWUs/8QaOCdT5KCMgXvwABajVg X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Source-IP: acsmt355.oracle.com [141.146.40.155] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090206.4BC23B82.00C3: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:123507 Archived-At: > > I see that ido implements it by turning "abc" into the regexp > > ".*a.*b.*c". =A0But matching this regexp against a string like > > "abababababab" takes time O(N^3) where N is the length of=20 > > the completion candidate, which makes me a bit uneasy >=20 > Does not "^a.*?b.*?c" give the same matches? (Why do you write `.*?' ?) Anyway, I think the point is that users can already, today, match in = this way using a pattern that includes special chars (wildcards), but that the = request was to be able to just type `abc', not some pattern like `*a*b*c'. People who like such ~fuzzy matching don't want to mess with extra chars = - the point is to type a few chars quickly and get the effect of typing many.