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: Thu, 7 Nov 2019 17:53:02 +0000 Message-ID: References: <83h83ignrz.fsf@gnu.org> <83ftj2gma8.fsf@gnu.org> <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> 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="67550"; mail-complaints-to="usenet@blaine.gmane.org" Cc: Ergus , Dmitry Gutov , Stefan Monnier , emacs-devel To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 07 18:53:33 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 1iSlyK-000HIP-Ab for ged-emacs-devel@m.gmane.org; Thu, 07 Nov 2019 18:53:28 +0100 Original-Received: from localhost ([::1]:46628 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iSlyI-0006Ua-QZ for ged-emacs-devel@m.gmane.org; Thu, 07 Nov 2019 12:53:26 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55743) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iSlyA-0006SD-Ry for emacs-devel@gnu.org; Thu, 07 Nov 2019 12:53:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iSly9-0001av-O8 for emacs-devel@gnu.org; Thu, 07 Nov 2019 12:53:18 -0500 Original-Received: from mail-il1-x130.google.com ([2607:f8b0:4864:20::130]:42663) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iSly7-0001aE-Ok; Thu, 07 Nov 2019 12:53:15 -0500 Original-Received: by mail-il1-x130.google.com with SMTP id n18so2595901ilt.9; Thu, 07 Nov 2019 09:53:15 -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=UxWCICDZVgJHihrd/AM1EBvZPzR9/sT07nds+Ltub8M=; b=A39DjgCkFO6MSS648hp/HeIVrb35EoDxcaKceCGTIzIQ9Tggl3P5ADZHzz3ROR+kFr Z5B/l2to0wv6L8V9CxeIYfvG/OKXewqYdTUS7++AQ9MssfSecJ8sx8ffnrNcpJ2Tdkm4 xJ3vjqwTJpSsAbs2fDfYGL34xYN4v5TQLYqh5WL2NezOtPYIp/CLGoYSdoIocNFHOTMP Zdid0Gtzok4PJCt9gLgNgTmgoKgwkhVRF1zhX76mDWbvfwAWYPyWiklOMy8+Ny0FmtTe C8c15KxdECHGB+t97jIMhGxQEWPP2vNb268jyD1bAQrGPYZISBUY02sPkjktMLfgCpCv HW/w== 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=UxWCICDZVgJHihrd/AM1EBvZPzR9/sT07nds+Ltub8M=; b=GhxiS4nbqTyOP0Nsp5c+43K4baKpmjiO24rmFebZXfs8Z0mP2jKcq1qPoQNb5SthdE SVeMSYcKCQ1NmjRXi6ZPybEr1Z9Zh6FSv1JQ7ZExYvUCfvdSlU/315IMfY7/HIOtGBNM TKDwcSy54bU3q1EK29iMDMNqZZHL6vCIXF0HHJalC3DttgzuoeMILfyKVY5DCzQu8MWh 66vs1bib/nPWxhpKGlBgj0ZhrnZ/EY9HDDF3b7L0MR7jDPV2pnKZ2g52YmjafFrjyAY8 GIoJZvv0RvHkTWR9NeY52qeCWN/o4y31lPSq9l7cop9VHKcFopWTR9JE4SE3c10BljUv lLLQ== X-Gm-Message-State: APjAAAXL5y7yudEimZqHhZu2s2ZegLrtjTDejIKR35iyB47Quwm1Ijfx hY/VZq9DuhRSS+vOK8FVHP+5O1EOOXi/XWmImUYLwpEP X-Google-Smtp-Source: APXvYqwNsOvYrvx3pjT96iQnBxSjqrn3EMbmJ8E9tzlbYbcI7PZh0OUiGlyBbLCrV2mRPsJUw2qVztJ3WrRXlJdZ8Ts= X-Received: by 2002:a92:1513:: with SMTP id v19mr5871257ilk.125.1573149194524; Thu, 07 Nov 2019 09:53:14 -0800 (PST) In-Reply-To: <83imnvegcp.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::130 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:241946 Archived-At: On Thu, Nov 7, 2019 at 5:39 PM Eli Zaretskii wrote: > Then how about simply using face aliases, without obsoleting the > current ones? I didn't know that was possible. It's perfect. > > "first-difference" to "completion-emphasis" and > > "common-part" to "secondary-emphasis" > > I think secondary-emphasis is not a good name, it says nothing about > its use. We should find a better name. "alternate-emphasis"? But if faces can be aliased without obsoleting, then 'basic' can continue the old names with maximum semantics. And since I don't think flex has much need for "alternate-emphasis" , it can continue to use the old names. > But anyway, this is a very minor issue, the main issue is not how to > call the faces. The main issue, for me, is letting 'flex' emphasize the part of the string that matched the pattern, so that users of flex can get visual feedback (like Drew, albeit a little longwindedly, explained here: https://lists.gnu.org/archive/html/emacs-devel/2019-11/msg00261.html)= . This is the core of my proposal: to improve usability of the new flex style by default. With your face aliases idea, the patch becomes even simpler, and can be contained to just 'flex' (or expanded to substring and p-c-m if their authors/users find acceptable). Jo=C3=A3o