From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: BIKESHED: completion faces Date: Wed, 06 Nov 2019 23:36:23 +0200 Organization: LINKOV.NET Message-ID: <87pni4adrc.fsf@mail.linkov.net> 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 Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="63421"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) Cc: emacs-devel , =?iso-8859-1?Q?Jo=E3o_T=E1vora?= , Stefan Monnier To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 06 23:33:16 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 1iSTrX-000GL3-SX for ged-emacs-devel@m.gmane.org; Wed, 06 Nov 2019 23:33:16 +0100 Original-Received: from localhost ([::1]:35784 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iSTrW-00051R-Eh for ged-emacs-devel@m.gmane.org; Wed, 06 Nov 2019 17:33:14 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34223) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iSTpM-000512-Dm for emacs-devel@gnu.org; Wed, 06 Nov 2019 17:31:01 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iSTpK-0000tM-TO for emacs-devel@gnu.org; Wed, 06 Nov 2019 17:31:00 -0500 Original-Received: from bumble.birch.relay.mailchannels.net ([23.83.209.25]:8333) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iSTpK-0000rl-Fa for emacs-devel@gnu.org; Wed, 06 Nov 2019 17:30:58 -0500 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id B4C115A23AD; Wed, 6 Nov 2019 22:30:55 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a79.g.dreamhost.com (100-96-60-110.trex.outbound.svc.cluster.local [100.96.60.110]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 0E9195A24DE; Wed, 6 Nov 2019 22:30:55 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a79.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.18.5); Wed, 06 Nov 2019 22:30:55 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Tank-Arch: 20bd23bb2b933bcc_1573079455476_2769505851 X-MC-Loop-Signature: 1573079455476:615629223 X-MC-Ingress-Time: 1573079455476 Original-Received: from pdx1-sub0-mail-a79.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a79.g.dreamhost.com (Postfix) with ESMTP id 67B33A3387; Wed, 6 Nov 2019 14:30:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=linkov.net; bh=ri5zZ1fuSVc5ukXTmCEUuJiZVwQ=; b= xrq0lRMOT87SrUavwqds2Hh2TGnzC7qC4+V/Fx5Yx+S1C2IGFrH3WjE9p0b1tPNt K65fIBcq+S8CVPfPO2Sisb3690hy6DpziY8QbfnjwGtHaTvH3jDd35MVVTPgQ3oH Cz9bKyKoXAS1oBpwmQBE0UwGIrcxQI9W5TFnzAVg9Es= Original-Received: from mail.jurta.org (m91-129-102-1.cust.tele2.ee [91.129.102.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a79.g.dreamhost.com (Postfix) with ESMTPSA id 82364A33A8; Wed, 6 Nov 2019 14:30:43 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a79 In-Reply-To: (Dmitry Gutov's message of "Wed, 6 Nov 2019 17:11:01 +0200") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 23.83.209.25 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:241882 Archived-At: > 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. Speaking of using arrow keys and RET, this reminded how completion works in web browsers. In both Firefox and Chromium completions are highlighted in bold, but Chromium doesn't hesitate to use different highlighting for different completion styles in the same completions list. The first part of so called omnibox displays completions from history/bookmarks using flex completion style where matched characters are highlighted in bold. The bottom part of the same omnibox displays search results using prefix completion style where bold is used for non-matched parts (i.e. the inverse of Emacs completions-common-part, i.e. substrings starting from completions-first-difference are highlighted in bold). This screenshot demonstrates different completion styles: https://www.chromestory.com/2018/05/omnibox-redesign/ where "time" in the link from bookmark/history is highlighted in bold for flex completion style, but "time" in search results for prefix completion style is not highlighted. Instead it highlights the remaining part to help the user to continue typing the highlighted characters.