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: BIKESHED: completion faces Date: Fri, 08 Nov 2019 10:15:02 +0000 Message-ID: <87ftiyn07t.fsf@gmail.com> References: <87zhhaxalt.fsf@gmail.com> <83bltpgffr.fsf@gnu.org> <83tv7gg9oz.fsf@gnu.org> <83r22kg8pa.fsf@gnu.org> <20191106205133.njij3ve7qqy7yh3q@Ergus> <83ftizg4nr.fsf@gnu.org> <8336ezg2vm.fsf@gnu.org> <83wocbelu1.fsf@gnu.org> <83imnvegcp.fsf@gnu.org> <83ftizeelw.fsf@gnu.org> <83bltne6oq.fsf@gnu.org> <87lfsrqs63.fsf@gmail.com> <838soqeuzr.fsf@gnu.org> 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="52741"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: spacibba@aol.com, dgutov@yandex.ru, monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 08 11:16:25 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 1iT1JX-000DZS-RT for ged-emacs-devel@m.gmane.org; Fri, 08 Nov 2019 11:16:24 +0100 Original-Received: from localhost ([::1]:51552 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iT1JV-0003wy-RX for ged-emacs-devel@m.gmane.org; Fri, 08 Nov 2019 05:16:21 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45699) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iT1IN-0003v2-Ll for emacs-devel@gnu.org; Fri, 08 Nov 2019 05:15:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iT1IM-0003mZ-A2 for emacs-devel@gnu.org; Fri, 08 Nov 2019 05:15:11 -0500 Original-Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]:38923) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iT1IM-0003jQ-47; Fri, 08 Nov 2019 05:15:10 -0500 Original-Received: by mail-wr1-x436.google.com with SMTP id a11so6368270wra.6; Fri, 08 Nov 2019 02:15:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=pit35p8hNBpBmp+Vc5cx2vzFGB5YDS9eYnLFY5tMizM=; b=tnUQVImlg1hCH9Z69a4ewXVT4p5ALj4Y1JeVYtHhFU/X+Upi39XGhwWEWmPwNy1u8t My9T92CbOrQuuoVAXjGQ5qE0XDOzOuz2Ul7yJEXHSGDy4zEgJY5ZY8F6cLu1PQmBoP79 A3uKVFEMhP4xJQT9U+EhoA88FndDtFXpOCiObCpnwMihudQ4lpLWushaUvyoS6M0lw+l uyGDOkCJttW6qExaMQxC1lyhMZ+RG/jQEQtMJWr5fMPrELgcATNObS5VZTN9z51ZZQ2U SM0D5JiBJ+srXQ0IReBPoTJSApUr6KawDxrXEFEV/c/MD0SsBqW9+WnEOyRVpNheYi94 FMWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=pit35p8hNBpBmp+Vc5cx2vzFGB5YDS9eYnLFY5tMizM=; b=OacW3EcmLeQx12Q5IH8eRbQ5aki9xnWqjxV8CfSKyl62JIASlUrRZuaKDBE7hFauFj DTZu9j5BOR1jKXfG2CX53X68/sXUJ4ayPFQlzmTeuHocL3qRMPFrXqFXOxLJFzqn/wI4 kH4hWHekKuNh9v5+YLlzgv4vmchJQuCcGSMBCCcEICYoV0rSdn/uXFj2KLg4/xrIh0He UAV2vaKEg+DDtuMZCkBTA7SQQdfbn53uZ3BvxNQlieZWXmZscy+H3yslz3q63JO7tKwB /7LyitSv9csQLVXrDNfergGTUl8Bev046dHV8Ygp18Qfp6YEXE5+BVh/OyE/xeaws/Cr zDKw== X-Gm-Message-State: APjAAAVdAlUK8BoH3lXkt/YLvqW1qkRHZZRZ3vFuMflIrlefH7L5lqfA tkzSHmr4RCHTmIoThDIu+Bk= X-Google-Smtp-Source: APXvYqwFxXYvhLkJ0q+YoOYeCRWfeq5r8FkQPMD5P1Nll2DoXF7X7XYH5scDAHQpYwzwonh2pvEP8g== X-Received: by 2002:a5d:4c8c:: with SMTP id z12mr2515309wrs.141.1573208107600; Fri, 08 Nov 2019 02:15:07 -0800 (PST) Original-Received: from lolita.yourcompany.com ([89.180.147.227]) by smtp.gmail.com with ESMTPSA id b196sm7761575wmd.24.2019.11.08.02.15.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Nov 2019 02:15:04 -0800 (PST) In-Reply-To: <838soqeuzr.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 08 Nov 2019 08:35:04 +0200") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::436 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:241973 Archived-At: Eli Zaretskii writes: >> Why didn't you object to it 1..2..six mails ago? You just said >> "secondary-emphasis" is not a good name... This makes us go in circles, >> Eli. > Sorry, I don't always have time to catch up with huge threads, and in > this particular case had difficulties to understand what were the main > issues. It's pretty simple. In that mail I made three statements, you objected to the second, which lead me to think that you agree with the other two. Here are the statements again: 1. Alias 'completions-first-difference' to 'completion-emphasis' 2. Alias 'completions-common-part' to 'completion-secondary-emphasis' 3. Make 'flex' use only completion-emphasis to highlight the pattern in the candidates.=20=20 That's it. >> One more time: my only goal in this entire giant conversation, is for >> the 'flex' style to be able to transform this match on the pattern "foo": >>=20 >> fabrobazor >> ^ >> `- this letter is bold by default currently >>=20 >> into this: >>=20 >> fabrobazor >> ^ ^ ^ >> `---`---`----- I want these bold by default in the future >>=20 >> no change to the 'basic/prefix' completion. > > I understand that you want to highlight both f, o, o, and r, but the > latter with a different face. If my understanding is incorrect, It is incorrect indeed: 'r' is should have the same face as 'a' or 'b'. > then what will the other face be used for? Nothing. I don't (yet) see 'flex' as needing secondary kinds of emphasis. >> Otherwise, if you do, then the only completion-related face that >> currently has "bold" is completions-first-difference, which is a silly >> name for this. Should I alias that to "completions-match-emphasis1", >> your 3-mails-ago suggestion? To something else? > > I understand that what I called completions-match-emphasis will > highlight f, o, and o -- the characters that were in the string typed > by the user. These are currently not highlighted at all. I also > understand that there will be another face, the one we currently call > completions-first-difference (and you want another name for it), which > will highlight r in this example. No, that is again incorrect. That "other face" is already the most important one of the two. Again, I repeat, the one we currently call 'completions-first-difference', is currently the bold one, by default. I want to change its name (to 'completion-emphasis' in my proposal) so that it makes sense for flex to apply it to flex's most important parts, which, in the above example, are the three characters 'f', 'o' and 'o' and no other characters. Thanks, Jo=C3=A3o