From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.devel Subject: RE: new-flex-completion-style Date: Thu, 14 Feb 2019 17:49:44 +0000 (UTC) Message-ID: <23b6cda2-0f37-4c41-b664-5353505c0cd1@default> References: <20190202232827.27331.87300@vcs0.savannah.gnu.org> <20190202232828.4AE452159A@vcs0.savannah.gnu.org> <87lg2mynrg.fsf@gmail.com> <871s4czm5n.fsf@gmail.com> <1f4513ab-cd39-4543-9b1a-743e1307dd54@default> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="122302"; mail-complaints-to="usenet@blaine.gmane.org" Cc: Daniel Pittman , Stefan Monnier , emacs-devel To: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 14 19:12:30 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1guLUs-000Vfx-I2 for ged-emacs-devel@m.gmane.org; Thu, 14 Feb 2019 19:12:30 +0100 Original-Received: from localhost ([127.0.0.1]:52745 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1guLUr-0005C1-3m for ged-emacs-devel@m.gmane.org; Thu, 14 Feb 2019 13:12:29 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:36462) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1guL93-00060z-8z for emacs-devel@gnu.org; Thu, 14 Feb 2019 12:49:58 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1guL91-0005Td-4I for emacs-devel@gnu.org; Thu, 14 Feb 2019 12:49:57 -0500 Original-Received: from userp2120.oracle.com ([156.151.31.85]:49414) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1guL8x-0005Ot-85 for emacs-devel@gnu.org; Thu, 14 Feb 2019 12:49:53 -0500 Original-Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x1EHmXTt162941; Thu, 14 Feb 2019 17:49:47 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=vMIYYOtRKnfci1pt7X9KUOluMZ2Z6jv9ptmikDrczDQ=; b=XlpFMzysswl5r1TqACQiQiP9KH4cTcj5trabGAKkpb4ezdiIef4X96XD3y0nD+NQm2Dt Z4Wz/ebqL7YdT/D6CKJ12b4GIRv/8Ge683aQiqoRwurOo53yVokAGcvd2M8Z1AKoyLS6 3lJ+zE6FOWdj3vcrRnknfRXub7vjYzfcLS7+U1yUVZwPbWo4wbl1eoan05fGNzoDvam4 3gos8MbL3adLLDoLZpKuUsREFeShdHjM3pj10JFBbpWTRCcsB91qI3aAHRdpkwshBnhM og+yObDHXYd0x1ZVXGR39C2JekZfVLZ2kGkjAqkRXSWjk0kFymXjE4W5xjNuzJJ6w0K+ Zw== Original-Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by userp2120.oracle.com with ESMTP id 2qhree9hpu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 14 Feb 2019 17:49:47 +0000 Original-Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id x1EHnkVg019273 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 14 Feb 2019 17:49:46 GMT Original-Received: from abhmp0007.oracle.com (abhmp0007.oracle.com [141.146.116.13]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id x1EHnjFw029091; Thu, 14 Feb 2019 17:49:45 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4810.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9167 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1902140121 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 156.151.31.85 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:233335 Archived-At: > Earlier, I forgot to tell you that I had visited your page (this is > where I learned the "scatter" alias) and for the record I'm > (re)implementing your "Scatter-Match (Flex) Completion" thing: >=20 > https://urldefense.proofpoint.com/v2/url?u=3Dhttps- > 3A__www.emacswiki.org_emacs_Icicles-5F-2D-5FCompletion-5FMethods-5Fand- > 5FStyles- > 23toc8&d=3DDwIFaQ&c=3DRoP1YumCXCgaWHvlZYR8PZh8Bv7qIrMUB65eapI_JnE&r=3DkI3= P6lj > Gv6CTHIKju0jqInF6AOwMCYRDQUmqX22rJ98&m=3D27ypntXsw7g-l7Nfe2JaeDgtsetIas- > Qq30T2GdC_58&s=3DC4LaFFUPksrZ2l6B04Ovt4T-kt8Tz4xwZN2EO-z8iuk&e=3D >=20 > Tho the equivalent regexp I'm using here is ".*a.*b.*c.*" not "a.*b.*c" > as your page states. With Icicles regexp matching for completion you don't need the initial `.*'. > Anyway, what kind of scoring, if any, do you use for sorting > the matches to that particular completion style? I don't use any scoring for scatter matching. Icicle users usually have a bunch of sort orders they can use (which set can depend on the particular command and on user preferences). One of them is "by flx score", which uses a score provided by `flx.el'. With scatter matching users can use any sort order allowed for the given command. This page has a list of most of the sort orders available by default: https://www.emacswiki.org/emacs/Icicles_-_Sorting_Candidates When completing, in the mode-line of `*Completions*' you see the number of matching candidates (e.g. 925), the match method (e.g. `scatter completion'), and the sort order (e.g. `by flx score'). --- [The two Icicles matchings using (1) `fuzzy-match.el' and (2) Swank fuzzy matching each impose a sort order - users can't switch sort orders when they use these two kinds of matching. These two are the kinds of fuzzy matching available for "prefix" Icicles completion, i.e., using `TAB'. The others, such as scatter and levenshtein, are available for "apropos" completion, i.e., using `S-TAB'.]