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: Sat, 9 Nov 2019 12:14:28 +0000 Message-ID: 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> <87ftiyn07t.fsf@gmail.com> <8336eycvpf.fsf@gnu.org> <83pni2bcws.fsf@gnu.org> <83imnubax9.fsf@gnu.org> <83h83eb8od.fsf@gnu.org> <83d0e2b32k.fsf@gnu.org> <83r22ha64z.fsf@gnu.org> <831ruh9siv.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="19169"; 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 Sat Nov 09 13:15:31 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 1iTPeN-0004sz-Ig for ged-emacs-devel@m.gmane.org; Sat, 09 Nov 2019 13:15:31 +0100 Original-Received: from localhost ([::1]:36182 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iTPeL-00059k-UF for ged-emacs-devel@m.gmane.org; Sat, 09 Nov 2019 07:15:29 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59828) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iTPdb-00059P-Tn for emacs-devel@gnu.org; Sat, 09 Nov 2019 07:14:44 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iTPda-0002AO-Ng for emacs-devel@gnu.org; Sat, 09 Nov 2019 07:14:43 -0500 Original-Received: from mail-il1-x12e.google.com ([2607:f8b0:4864:20::12e]:35611) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iTPdZ-00029Z-4g; Sat, 09 Nov 2019 07:14:41 -0500 Original-Received: by mail-il1-x12e.google.com with SMTP id z12so7600484ilp.2; Sat, 09 Nov 2019 04:14:41 -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=4nJ3LLMPy76wwmgwhIUMUjHYFsvnFjAOwk5fD+HEHhI=; b=nAoMxvFk7wh2EHmDNIZGyfBANvM6+CVQez7HT3ZA6aRGngqYPNSafsofHZodR7Ayjw xoHBi845XOUGy32QI6yyUF7GLTACDA9NGmS9FgizrPiQb8915UbOBrpvTBhCRY31XusL wpkbcL6EhhmJtgdo1040XafmXjRXL3dqF6N+bQMscoYxuETGG4O4VQXKC3nXKVZij0yT XrfIeXLLHh5hy87LSbL+0vHg9nEPe8VoY3dz8sl4jzNbGIu26tbos5q67P6HRFwajLQx zByDql7dIibW9IaGQHHiQt4krmmeH0q5LbDq77UsCF3jXjIUBNnqLErCRdoHDQpyG7mt q/jg== 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=4nJ3LLMPy76wwmgwhIUMUjHYFsvnFjAOwk5fD+HEHhI=; b=lPz+qwJorCrPZFweZ5cUlxrcC3Y5qjWxj6moXTPQ9Myl+rBW47O1IlTDJeNmFLqTlh ayCmLmv6IaflsFaI0j8FxO80IzghVyoDFJrxOafZk00D2U//mUB0IHTprRGhmWb4nCns +LICN2C5+d4re9tphvlSqVXC79S4KPEDVlUyK5vl5AVnjMHGduGmzmcMGFBcLi7RN9FI WpQ0qCsWZJP8XdzC39vZ7dFfPNsWv9HaMetwW33SEKynioDwN9Vq2Y5gj8kcgqn3lzGH 7WDTqHFP18ZjDh6WnLRvuyboTxO9GGsZN3YQY5VkcMWT7d2U2VE8GImse4z5ItU1nWFN 4eLg== X-Gm-Message-State: APjAAAV/ssHOnGmlNVo2biUFEhPqEzinbGDAa4zQdMGACEhaMCDpkJAv 3IKovPoS5OYYPQNgpYAwRdNJVHm3Ir4mHPYnMx9WJ1M6 X-Google-Smtp-Source: APXvYqzXlp78/5el0O5iAdApw2HilWLs+Exf4et6Ifi/ksHK5iSV721kqW1wgIR/zsTUK90Kc5khjdC7CmETttwnh1c= X-Received: by 2002:a92:bf01:: with SMTP id z1mr19709905ilh.9.1573301679625; Sat, 09 Nov 2019 04:14:39 -0800 (PST) In-Reply-To: <831ruh9siv.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::12e 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:242038 Archived-At: On Sat, Nov 9, 2019 at 11:52 AM Eli Zaretskii wrote: > > > From: Jo=C3=A3o T=C3=A1vora > > Date: Sat, 9 Nov 2019 11:20:30 +0000 > > Cc: Ergus , emacs-devel , > > Stefan Monnier , Dmitry Gutov > > > > On Sat, Nov 9, 2019 at 6:57 AM Eli Zaretskii wrote: > > > > > By "reversal" I mean that the part we highlight is the part that > > > matched what the user typed, and the part we don't highlight is what > > > the user might type to narrow the search. We currently do the > > > opposite. > > > > Yes. You call this an inconsistency, I don't. > > I call this "reversal". I guess we now agree about this part, whereas > previously you said there was no reversal. By "reversal", I understand reversing the application of the two faces in the 'basic' completion style. I proposed that, but I withdrew it. I think Stefan's original proposal, the very first one that started the thread, also goes in this direction somewhat. In my "reversal" proposal, no new faces or aliases need be added. By "consistency" I am talking about 'prefix' and 'flex' both highlighting the pattern's characters in the same face. The reverse, "inconsistency", means that 'prefix' chooses to highlight the first difference, and 'flex' chooses to highlight the pattern's characters. I _don't_ call this "reversal" (though you may, in which case we need a new word to describe the situation I explained in the previous paragraph). My "renames" proposal, which differs from my "reversal" proposal, brings about this "inconsistency", which I think, in relative terms, is a drawback dwarfed by the advantages. So, to me, these are two separate things. > > Or maybe I could call it that, but the value that arises from > > accepting it is greater than the drawbacks, IMO. > > I object to making this the default behavior, because it's the exact > opposite of what we do now. I already suggested to make what you want > an optional behavior, but AFAIU you rejected that, not sure I > understand why. Because it is already an optional behaviour. I wrote "we already have that: themes". That's the reason. I for example use M-x customize-face to fix the situation and unless the situation advances, I will advise users of flex to do the same. There's no point in adding anything more, IMO. Jo=C3=A3o