From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: handling many matches Date: Sat, 2 May 2020 21:39:06 +0300 Message-ID: References: <119c0543-387d-4fad-b7fe-b4e07a7be4f8@default> <837dxuvohj.fsf@gnu.org> <83wo5usaui.fsf@gnu.org> <14f6ff0f-afcc-5cc2-b8ce-491209c1e739@yandex.ru> <83y2qaqoxi.fsf@gnu.org> <5f531674-88b2-55fd-a677-7cbd57a62b91@yandex.ru> <83tv0yqmeq.fsf@gnu.org> <83pnbmqjcz.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="31619"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 Cc: jonas@bernoul.li, emacs-devel@gnu.org, monnier@iro.umontreal.ca, adam@alphapapa.net, kyle@kyleam.com, drew.adams@oracle.com To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat May 02 20:39:51 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 1jUx3H-00087m-6a for ged-emacs-devel@m.gmane-mx.org; Sat, 02 May 2020 20:39:51 +0200 Original-Received: from localhost ([::1]:46804 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jUx3G-0004fm-94 for ged-emacs-devel@m.gmane-mx.org; Sat, 02 May 2020 14:39:50 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59598) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jUx2f-0003LS-FV for emacs-devel@gnu.org; Sat, 02 May 2020 14:39:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jUx2e-0000Hp-OY for emacs-devel@gnu.org; Sat, 02 May 2020 14:39:13 -0400 Original-Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]:34645) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jUx2e-0000Ev-Bb; Sat, 02 May 2020 14:39:12 -0400 Original-Received: by mail-wm1-x331.google.com with SMTP id v4so12192843wme.1; Sat, 02 May 2020 11:39:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=6lnPmdgAzrULFjVJJFtvLGtkCUoDG4RSEnlPNfdArIc=; b=NHslYiaxkluS8/y5dDv2LckDdxvrBW7ARzc52v581Yqikx5UDLfpaMTmw12fcWrAJ1 ndvRsioprgjK0TYGrAxPB7UQy2GS3jGPM/gtPlUSblZ+0xOf7WwgDu3mjmkFisSWTkQZ X/HU9seKu5uH73kT0JSsyONxCJrddaqn5hs6p0UJ/hjW3m8ft/OrcnJ/veNyktRSC/ex H4c6xTo6ayHVYwn2VHCLKtIpAhWpdCOf6uaAfnRuY4v0fnNA9d4H1ErI0dV7Z7pc/yCb QRaWNvikxpp75MAzwE6x462fBAZPpfuAiQKC/FPd25gv5LRpZZUJbDXneiJahKrj192y PG+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=6lnPmdgAzrULFjVJJFtvLGtkCUoDG4RSEnlPNfdArIc=; b=hc2+xDWPD9Lk0Uz/O2rETsgacBd/olEXGQ1uAn2yqWIHG4QQjc3o1IwQfhgA3pobyP GiTO3BMhFqyS/DI6Pd2O/8aSx7ZpA4wtcqiLZmGEkg/umyp7xXvDYi97V5OFnwvhSu0B fH2yhas1kdPCmIh8Y76NJLXzIZyOfWxyLa2cMtFtNit0hQ96YbmTVn5HvFoUykd9U4Cd adxyHuUQm/en6lcPrSPRL3G5UOgf46RDb19qnZ7RVD/9uAp/IwIhx1uQB7gR1sYfAyc0 2knrWstyzSPnucpF3L2Ky9e+LjvYdAePM6altnhaMSDX3ZWHPi3+dOkLA1WP/C1dOfVg haLw== X-Gm-Message-State: AGi0PuZvmq9GfZKJYtBfZJLb0yaU2l/+ot568qVuA0KsbUlWucNydiiE dOWKgEyNCkaqgHxMUGUMBRU= X-Google-Smtp-Source: APiQypImid7lt58B5RgIx12FPcsirfBcubVMP9CDA3t/IhULJLedaZqSxFhMY9ez8awKWEwkZZeMjA== X-Received: by 2002:a05:600c:220c:: with SMTP id z12mr5590568wml.84.1588444749327; Sat, 02 May 2020 11:39:09 -0700 (PDT) Original-Received: from [192.168.0.3] ([66.205.73.129]) by smtp.googlemail.com with ESMTPSA id d18sm6951999wrv.14.2020.05.02.11.39.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 02 May 2020 11:39:08 -0700 (PDT) In-Reply-To: <83pnbmqjcz.fsf@gnu.org> Content-Language: en-US Received-SPF: pass client-ip=2a00:1450:4864:20::331; envelope-from=raaahh@gmail.com; helo=mail-wm1-x331.google.com X-detected-operating-system: by eggs.gnu.org: Error: [-] PROGRAM ABORT : Malformed IPv6 address (bad octet value). Location : parse_addr6(), p0f-client.c:67 X-Received-From: 2a00:1450:4864:20::331 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:248533 Archived-At: On 02.05.2020 21:31, Eli Zaretskii wrote: > Then let's sort it. The question is only: what is the key? Relevance to input, for example. But how will we determine it, you will ask? For instance, by seeing where the search words are in the each listed name. If they are close to the beginning, assign higher scores. As you can see, this will fit namespace-based naming quite well.