From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: BIKESHED: completion faces Date: Wed, 6 Nov 2019 17:11:01 +0200 Message-ID: References: <4c5631d4-9dfd-04c6-c573-b83c67fcc2fa@yandex.ru> <87pni7p83l.fsf@gmail.com> <87h83ipoi0.fsf@gmail.com> <3f7afc8e-b3d1-07a4-9350-3bfc5775ba21@yandex.ru> <87sgn1yl4b.fsf@gmail.com> <87bltp1eug.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="42325"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 Cc: Stefan Monnier , emacs-devel To: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 06 16:12:42 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.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iSMzC-000Ati-2G for ged-emacs-devel@m.gmane.org; Wed, 06 Nov 2019 16:12:42 +0100 Original-Received: from localhost ([::1]:59946 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iSMzA-0002vJ-Nw for ged-emacs-devel@m.gmane.org; Wed, 06 Nov 2019 10:12:40 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40184) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iSMxj-0001oy-6V for emacs-devel@gnu.org; Wed, 06 Nov 2019 10:11:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iSMxe-0004TI-Bj for emacs-devel@gnu.org; Wed, 06 Nov 2019 10:11:11 -0500 Original-Received: from mail-ed1-x52e.google.com ([2a00:1450:4864:20::52e]:45312) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iSMxe-0004Sq-4w for emacs-devel@gnu.org; Wed, 06 Nov 2019 10:11:06 -0500 Original-Received: by mail-ed1-x52e.google.com with SMTP id b5so8789367eds.12 for ; Wed, 06 Nov 2019 07:11:06 -0800 (PST) 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=X9euN0aPN5lHcAW5IdqEJCs9MzQK6oU1uTjE0BG9RDw=; b=hKlMZBhroBL0vm1nG1EpES0Kl8/HeKxAw4BqDFm+PQbDbkIWfxwFpFMHEr/gcM+PHG T5vIL2tPFnX62rigKdVbpPiag4+npnnyVqyI0GGchSdhUGlnWStsrPJnetAOQV4dAGaB Gqq87I6SHte4w3wCZ7MM+CBpPLjckH5o69tUGhh4d6/bOW6QvaltvS2X1FTKDXxhKA9S 1tM+0qUSvqO71jte0+Oau+WgVAgaEzIQjPnYXW8JT5V+J8AiagVc4Cw+UWak3Hcht/// +J3HmCxXGHv6aDRhAie7BfU5G4TS6IODACwHCQjbdGLt00q2g41UTldPUazXu0UiYOa5 QROw== 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=X9euN0aPN5lHcAW5IdqEJCs9MzQK6oU1uTjE0BG9RDw=; b=ITM0xf3NMTVMKJJpVrydNVIeiXSHr2NSNgoPmKcm7RpcvyV9wCejeRRCD8CDJoIykQ uTZeDs3o2zTWhJivIyQiBfDOmbZ5hwZ1yJUJzLpNgY/TMP3QIHm+4Tr3UqPNVL9NeamB kFRUfYHe6wzQUGRBOQUgkAmlqzFDZKPp37F9vjKWTW+dBlASXmPH5scsXJNd0ZgKW29/ sK7qma8p17n/DDJ6JxKgCVXGMbtShbEr7aTB6zOVGHt0a8EjpY2PyFm4vJIwQHx0Rmbw nBmpwrbD+whHmJ8me2VmjCy29AVpMrHAiWS2cOYTQhXZdHXtPER0ciisApfXtCMcL5re gvhw== X-Gm-Message-State: APjAAAUlb0wH0rAffGBIUxcQkVu5NcnvuJpAblv6z0glr6PRStBspYjl D7Oc0UKOWX5ZBAaPkF8bKYboAuLwNB8= X-Google-Smtp-Source: APXvYqwZBs7EQ6WeXsSw9tAWSxS/NVdCWMpjxiBV2x7u2mUnKsPV735D96MLA0UF/w5nPXnvSeMzFQ== X-Received: by 2002:a05:6402:128c:: with SMTP id w12mr3211328edv.178.1573053064759; Wed, 06 Nov 2019 07:11:04 -0800 (PST) Original-Received: from [192.168.0.149] ([109.110.245.170]) by smtp.googlemail.com with ESMTPSA id 91sm967356eda.1.2019.11.06.07.11.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Nov 2019 07:11:02 -0800 (PST) In-Reply-To: <87bltp1eug.fsf@gmail.com> Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::52e 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:241851 Archived-At: On 06.11.2019 12:25, João Távora wrote: > My proposal has two parts, the second one is optional OK, thank you. I'm sorry to say, it's too convoluted for my liking. But others' opinions are welcome. > This second steps yields a moderate gain in "consistency" to other > editors that also use prefix-matching somehow. Speaking of other editors, the usual way to pick a completion there is either to use arrow keys then press RET, or to press TAB several times. In completion-at-point, the user needs to type a letter to disambiguate. So completions-first-difference, or whatever it should be called, is more important here. > I also want to review my previous comment to this. I said those editors > "suck", but that is totally gratuitous since I have no idea exactly what > they do. If limiting yields performance increaase, then of course we > should do it. In fact I use this in SLY, when I have to send > completions through the wire. But I don't in any way limit the set of > symbols from which completions can be collected. This set has to be > explored fully, because the "best" match might lurk at the very > boundaries or the set. Right. I think I've made that distinction when describing the "sorted/scored tree of completions" idea.