From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?=C3=93scar_Fuentes?= Newsgroups: gmane.emacs.devel Subject: Re: new-flex-completion-style Date: Thu, 14 Feb 2019 16:28:31 +0100 Message-ID: <875ztm9yow.fsf@telefonica.net> References: <20190202232827.27331.87300@vcs0.savannah.gnu.org> <20190202232828.4AE452159A@vcs0.savannah.gnu.org> <87lg2mynrg.fsf@gmail.com> <871s4czm5n.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="140187"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.90 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 14 16:33:20 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 1guJ0q-000aMD-Fx for ged-emacs-devel@m.gmane.org; Thu, 14 Feb 2019 16:33:20 +0100 Original-Received: from localhost ([127.0.0.1]:50276 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1guJ0p-0006PJ-Cv for ged-emacs-devel@m.gmane.org; Thu, 14 Feb 2019 10:33:19 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:56563) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1guIwa-00048H-6d for emacs-devel@gnu.org; Thu, 14 Feb 2019 10:28:58 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1guIwU-0007k4-2T for emacs-devel@gnu.org; Thu, 14 Feb 2019 10:28:53 -0500 Original-Received: from [195.159.176.226] (port=46144 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1guIwO-0007Zw-EV for emacs-devel@gnu.org; Thu, 14 Feb 2019 10:28:46 -0500 Original-Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1guIwK-000UDw-OK for emacs-devel@gnu.org; Thu, 14 Feb 2019 16:28:40 +0100 X-Injected-Via-Gmane: http://gmane.org/ Cancel-Lock: sha1:mYyJOw/3k6a96WZyip2d5aAgSyI= 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:233327 Archived-At: João Távora writes: > Eventually we could weight the number and length > of holes differently so we can get this: > > score(foo,barfoobaz) > score(foo,fabrobazo) > > score(foo,fotttttttttttttttttttttto) > > Which would be nicer, I think. My experience on this type of discussions about flx says that you should design a scoring algorithm based on some generic, human-related heuristic that makes sense to you and stick to it. You will hear lots of complaints by those that dislike the system, showing specific examples that demonstrate "obvious" deficiencies on your approach. But it is impossible to create something that makes everybody happy. As long as Emacs can't read our minds, there will be no good-enough completion mechanism. And even then... we are dealing with the Emacs user base, you know :-)