From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: new-flex-completion-style Date: Thu, 14 Feb 2019 17:22:19 -0500 Message-ID: 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> <23b6cda2-0f37-4c41-b664-5353505c0cd1@default> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="44234"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: Daniel Pittman , =?windows-1252?B?Sm/jbyBU4XZvcmE=?= , emacs-devel To: Drew Adams Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 14 23:22:35 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 1guPOr-000BOY-OE for ged-emacs-devel@m.gmane.org; Thu, 14 Feb 2019 23:22:33 +0100 Original-Received: from localhost ([127.0.0.1]:56037 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1guPOq-0004uF-Lw for ged-emacs-devel@m.gmane.org; Thu, 14 Feb 2019 17:22:32 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:41766) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1guPOk-0004u8-Sa for emacs-devel@gnu.org; Thu, 14 Feb 2019 17:22:27 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1guPOj-0007nk-V2 for emacs-devel@gnu.org; Thu, 14 Feb 2019 17:22:26 -0500 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:40813) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1guPOh-0007lx-1Y for emacs-devel@gnu.org; Thu, 14 Feb 2019 17:22:23 -0500 Original-Received: from lechazo.home (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.7/8.14.1) with ESMTP id x1EMMJtm017896; Thu, 14 Feb 2019 17:22:19 -0500 Original-Received: by lechazo.home (Postfix, from userid 20848) id 6BA9460CA7; Thu, 14 Feb 2019 17:22:19 -0500 (EST) In-Reply-To: (Drew Adams's message of "Thu, 14 Feb 2019 22:03:57 +0000 (UTC)") X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 2 Rules triggered EDT_SA_DN_PASS=0, RV6483=0 X-NAI-Spam-Version: 2.3.0.9418 : core <6483> : inlines <7018> : streams <1813050> : uri <2796418> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.22 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:233348 Archived-At: >> > Can you see that some of the following predefined orders >> > might be advantageous in particular contexts/use cases? >> > Can you see that whether matching is scatter, regexp, >> > basic prefix, or others, any of the following can be >> > useful? >> No, I can't. > Seriously? All the examples you give are non-specific to the completion-style used, whereas the `flx` scoring seems more directly related to the completion style. I guess one could consider `flx` scoring as just another kind of sorting, but I'm pretty sure that it can give odd results when used with (say) regexp-style completion. So maybe, another way to look at it is that there are several sorting choices, one of them being provided by the completion-style. Stefan