From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= Newsgroups: gmane.emacs.devel Subject: Re: new-flex-completion-style Date: Thu, 14 Feb 2019 13:55:51 +0000 Message-ID: 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: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="211926"; mail-complaints-to="usenet@blaine.gmane.org" Cc: emacs-devel To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 14 14:56:15 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 1guHUs-000t2T-Gu for ged-emacs-devel@m.gmane.org; Thu, 14 Feb 2019 14:56:14 +0100 Original-Received: from localhost ([127.0.0.1]:49042 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1guHUr-0006PX-Ij for ged-emacs-devel@m.gmane.org; Thu, 14 Feb 2019 08:56:13 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:34754) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1guHUi-0006Mk-Ut for emacs-devel@gnu.org; Thu, 14 Feb 2019 08:56:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1guHUh-0002KV-UI for emacs-devel@gnu.org; Thu, 14 Feb 2019 08:56:04 -0500 Original-Received: from mail-qt1-x834.google.com ([2607:f8b0:4864:20::834]:36742) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1guHUh-0002Jb-Lb for emacs-devel@gnu.org; Thu, 14 Feb 2019 08:56:03 -0500 Original-Received: by mail-qt1-x834.google.com with SMTP id p25so6603526qtb.3 for ; Thu, 14 Feb 2019 05:56:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=6778i6T6nWIiqKzKF9cSxaBoRQ/SzgeNcmhyFw35LKA=; b=U9hkL9eyNBaBvaME2R+QmC+PzcZiSAjseTWRPbP32lDDZpTyomORfxXFl44zjG7mgm 5gZvxTGmZmqANMhFgFj6GsPvZYl7Cg2EpY/S5/7n1i/JmuJu6o0mkGgERaKsohVKU5l1 Of8qnHfFJRs5X06OMBXVp47XdeK5ZOpcZlfNa7zqoatWxOXqz71APTMRq7RxVbhgQLGd k0JSg0hIWFwLO97NN5dicuRUs3QJwpy3SE/pJGFd7NqiM+i372ZU3gqvFSft5ibrAqPN vfSy/Tdou9yBiR+wG1qkrfPN97jZlw5kR2AAna7AVZ1R+UPvmWjLrZUyGYKOeSXj4ZvH OjBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=6778i6T6nWIiqKzKF9cSxaBoRQ/SzgeNcmhyFw35LKA=; b=td/qXNKUEFVsOt2J5VhbYR8I0qXKSecNYaQkC6wszlQs656zspiYB53bWNiTBmULOp O4k67zGBK6yN0ppVD3rZ6wYfKYP95sFX7gv0WiVIKgf6q88emnbfWo1R4gQcam0bXYp/ iuBLWtBBDIW1QXMyIc9maagxY1SFCKwm9aGjTTSlbR5fipqKg3lejZ+y+XJ6XcpyZhI2 wYn/k8BUHhDKSx97Iphj8ZOVYdKTXy6BkjjIj1vOqWYULqvl7zDfnx6U+An2STrFFhv0 L5H9EaEeqEVaoH2hsJxzVwOPR6n7NBrD4sFqDMOjRiunzjlTzPXGbwqv8fAFExCPH0+e PZwg== X-Gm-Message-State: AHQUAuY+l/TN+UUb/MVSlrWu938GPSft2XxSiE+U8LKkOywELdHtMPUJ dJGFhrVp+WOJoL3vdnPILzGYJ1qyTfbaT/GPxhc= X-Google-Smtp-Source: AHgI3IZhlVZQyex80hfN7dQ+LTMSBCs+yaCcH427Y6dq8LD1KWYS7OHA/04ZRXgfYLQ4jbhZt7PtQgtDm2kmEwIBkaQ= X-Received: by 2002:ac8:649:: with SMTP id e9mr3159303qth.178.1550152563122; Thu, 14 Feb 2019 05:56:03 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::834 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:233314 Archived-At: On Thu, Feb 14, 2019 at 1:36 PM Stefan Monnier w= rote: > > > I don't think it's odd. I call the former "scattered match" > > and the latter a "tighter match". > > Don't you find it odd that "foo" gives a better score to > "fotttttttttttttttto" than to "foto" ? Perhaps. But as it stands it doesn't make sense to compare scores across different length strings. It does make sense to compare the score between foo's matches of foot and foto. > [ Given them the same score sounds acceptable, tho. ] Feel free to add some kind of normalization to the function if you can come up with it. Or come up with another function entirely. As I said, a function that measures the distance in "boring editing operations" between the pattern and the target would be a nicer measure. --=20 Jo=C3=A3o T=C3=A1vora