From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.devel Subject: RE: Feature branches review please (ivy hello) Date: Fri, 6 Nov 2020 08:30:01 -0800 (PST) Message-ID: <4b357d14-125f-4639-9bac-86b97479cc98@default> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21437"; mail-complaints-to="usenet@ciao.gmane.io" To: Emacs-Devel List Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Nov 06 17:32:58 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kb4fa-0005U1-2W for ged-emacs-devel@m.gmane-mx.org; Fri, 06 Nov 2020 17:32:58 +0100 Original-Received: from localhost ([::1]:44906 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kb4fZ-0002mS-1g for ged-emacs-devel@m.gmane-mx.org; Fri, 06 Nov 2020 11:32:57 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52724) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kb4el-0001mk-7B for emacs-devel@gnu.org; Fri, 06 Nov 2020 11:32:07 -0500 Original-Received: from aserp2120.oracle.com ([141.146.126.78]:60308) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kb4ei-0007FK-MM for emacs-devel@gnu.org; Fri, 06 Nov 2020 11:32:06 -0500 Original-Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 0A6GNmc1080209 for ; Fri, 6 Nov 2020 16:32:03 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : subject : content-type : content-transfer-encoding; s=corp-2020-01-29; bh=AxPp8cKz2omg2uSvUipJPuNtqEd9SGlf0U8HhqHV2PE=; b=gIJmrxHV/xPnzsYRRp/HF57w+q49FCxPq1VdsSFPIvQdQ7az0tcaqp2YuauFWvznvPk8 lE4auxOtPBltbSJpnezUmfD9f38OMl2bbtnoINakoWJRYq2dzUqJebh7NPpzq0Di4KGC n2EOs868jnWFJd7sIAayrVti04Yrh1BH3qI5PCIfjwwkdpIuuw438XgxbqCpEL7GYf/p 0veNDnvcG2Tlg20lWlOWnzfTERnmy8NQXaMBkgTcdSt/rK/f8fvOjOUD5/OyamYRtGPa 65PI5q4jjOwF7iDBOvNVFDI7x+V0u1UzMSUGtuHpaVCK9+Q14ycrCwZqWeUCSavUhYop bA== Original-Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by aserp2120.oracle.com with ESMTP id 34hhvcsrjt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Fri, 06 Nov 2020 16:32:03 +0000 Original-Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 0A6GOxFu040596 for ; Fri, 6 Nov 2020 16:30:02 GMT Original-Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserp3030.oracle.com with ESMTP id 34jf4e77r1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Fri, 06 Nov 2020 16:30:02 +0000 Original-Received: from abhmp0009.oracle.com (abhmp0009.oracle.com [141.146.116.15]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 0A6GU2Tf003601 for ; Fri, 6 Nov 2020 16:30:02 GMT X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.5071.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9796 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=0 mlxscore=0 bulkscore=0 malwarescore=0 mlxlogscore=999 phishscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2011060118 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9797 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=0 impostorscore=0 malwarescore=0 priorityscore=1501 mlxlogscore=999 bulkscore=0 phishscore=0 adultscore=0 mlxscore=0 lowpriorityscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2011060118 Received-SPF: pass client-ip=141.146.126.78; envelope-from=drew.adams@oracle.com; helo=aserp2120.oracle.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/06 11:32:03 X-ACL-Warn: Detected OS = Linux 3.1-3.10 [fuzzy] X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:258831 Archived-At: [Forwarding to the list, as it got dropped from Reply All.] > >> Again, please try (setq completion-styles (cons 'flex > >> completion-styles)). With this "foo bar" matches both "foo bar" and > >> "bar foo" (and also "far boo", "boo far", ...). > > > > Does it? >=20 > Hmmm, no, you're right, it doesn't. I don't use that setting, I tried it > briefly and wrongly concluded that it worked that way. What would be > needed is a "superflex" completion-style where characters can be given in > any order ;-) tl;dr: Matching without respect to order in the target involves multiple separate matches. ___ What's usually called "flex" matching (Icicles calls it "scatter") just matches bits of the pattern you provide _in order_, one after the other. The matches are scattered throughout the target, but they are _in order_ there. To match multiple patterns without regard to order in the target, you need to match the patterns separately, each against the original target or each against the result of previous matching. Icicles or library orderless.el provides such behavior. With Icicles, you can match a pattern (regexp, fuzzy, flex, substring, whatever), and then you can match another pattern ... etc. Because the component matches are separate the resulting overall matches have those component matches in any order.