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: [Emacs-diffs] master b0e318d 2/2: Score flex-style completions according to match tightness Date: Sat, 16 Mar 2019 09:19:38 -0400 Message-ID: References: <20190213212413.868.40960@vcs0.savannah.gnu.org> <20190213212415.148B9209D7@vcs0.savannah.gnu.org> <0ba3ca47-c7d6-a608-536e-94784ba3384b@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="108363"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Mar 16 14:35:06 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 1h59Ss-000S5F-2Z for ged-emacs-devel@m.gmane.org; Sat, 16 Mar 2019 14:35:06 +0100 Original-Received: from localhost ([127.0.0.1]:42055 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h59Sq-0005w1-W5 for ged-emacs-devel@m.gmane.org; Sat, 16 Mar 2019 09:35:05 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:42753) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h59Se-0005ch-A5 for emacs-devel@gnu.org; Sat, 16 Mar 2019 09:34:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h59E2-0005s9-8q for emacs-devel@gnu.org; Sat, 16 Mar 2019 09:19:46 -0400 Original-Received: from [195.159.176.226] (port=41684 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h59E1-0005r0-Nq for emacs-devel@gnu.org; Sat, 16 Mar 2019 09:19:46 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1h59Dz-000BlY-Go for emacs-devel@gnu.org; Sat, 16 Mar 2019 14:19:43 +0100 X-Injected-Via-Gmane: http://gmane.org/ Cancel-Lock: sha1:TMmPNt3OnntQh56AViPUU37zuDI= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 195.159.176.226 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:234214 Archived-At: > It adds them in the hope that they would be useful in the near future. > When I added this bit, I thought it would be a matter of days until we > found a suitable place for a sorting function to use those properties. > But it's been two months and a decision hasn't yet been reached. Actually, I think we did reach a consensus, but I haven't gotten to writing the code yet. > So there are currently no users of that functionality, and it > could very well be removed. Please leave it in. > Regardless of the decision of where to put sorting function based > on flex scores, completion-pcm--... is a most suitable place to add the > scoring, since this is where the string is propertized (and the scoring > is closely related to that. Also, I think the scoring would be valuable for `partial-completion` and `initialism` styles as well (i.e. for all users of PCM). Stefan