From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Filippo Argiolas Newsgroups: gmane.emacs.devel Subject: Re: Foreground color opacity Date: Tue, 12 Sep 2023 07:24:45 +0200 Message-ID: References: <83fs3krhmi.fsf@gnu.org> <838r9crel3.fsf@gnu.org> <8334zkr6ll.fsf@gnu.org> <83tts0p1vu.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14801"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Sep 12 07:25:53 2023 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qfvuL-0003iZ-1V for ged-emacs-devel@m.gmane-mx.org; Tue, 12 Sep 2023 07:25:53 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qfvtf-0000Gv-P2; Tue, 12 Sep 2023 01:25:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qfvtc-0000GE-R4 for emacs-devel@gnu.org; Tue, 12 Sep 2023 01:25:08 -0400 Original-Received: from mail-pj1-x1030.google.com ([2607:f8b0:4864:20::1030]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qfvtW-00025l-Q6; Tue, 12 Sep 2023 01:25:06 -0400 Original-Received: by mail-pj1-x1030.google.com with SMTP id 98e67ed59e1d1-26f57f02442so3651341a91.0; Mon, 11 Sep 2023 22:24:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694496298; x=1695101098; darn=gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=vOVqxgLxOsLkA+iZnEANNTTGrgMME4+92v6Y0UL5gnw=; b=YuW6JAuPjGkHdOzu2owcVhWH1keEh6ZOs/hEtD1Ua8J0DXS+1UbZ/WO9cAUZYp/zo0 aLxl83iVqYrBhK/G1ouBpOOAoRyfPf2gEUnSJL2t1sRTBE4o4bU2ztMR43JmE2h8hAnq NNZSZYVHf3EcUfDQeeQyhXUbfMhcf7qGgTCUWBHm0jLZZypN9DWzazTZPgVBMvn07Qwx aesdrtDd05cQVwZI+xGdNGC+L3jaBTUPOosVSucSXbeoM/D7z6eFSrbOgmZ3WMmO1VJ0 Z+cFETjCy23YU84+QqENHBrr2/eEXp7g2aG6Fa/kvUqwSzr/F2efD4GFhsRh0320lGXs Qzmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694496298; x=1695101098; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=vOVqxgLxOsLkA+iZnEANNTTGrgMME4+92v6Y0UL5gnw=; b=NRAEYOHcMp1e900ssk4SeCZ293p8eYSWu2aoYIZM6umqsJy2lqRFv4cdlti+Ri/A1S lhkTcvEoCl1rfyDG3qEfEN9e3hUbLuuIVmZ0FCiWwoaH7XbvxBy/Nq0fkJ/kPnFB6Gd4 mteVF5PmSJzmAsw2pBO/HLzjWRiMJwS8OUJ5dpux8/udyvEvvRBeQw5BRg3BbdfLTe6q zPNGMUVuoKbMmr3Gxge7H5PUn9oTmtG1NgqXJB09JmR1Hd8rUdhGG0S2xSW+v5c8moDj sr/OBZv/38pSSqMT/Yd+oZEK2QTf15Esa093KrQ3/GSnAVVW4tcBYnacR60tN6O30C23 IY6g== X-Gm-Message-State: AOJu0YxkjBfH0IJXLHFuE7u+96lCl+YLOpsnrcuhyfVx7aiiCMStPunB yhAbFfCtX/DoWpBM4cSbN/+bWHK4A2AMZaBkEzgzafhO X-Google-Smtp-Source: AGHT+IH6lUj70esLhbwr/v9YW21kshXdHHZ7GneFT5CsD5kNpYlRAqCbsKsra13XYx519vO+3voKvZEXO4ZZdNcg12s= X-Received: by 2002:a17:90a:e144:b0:274:1bb1:415a with SMTP id ez4-20020a17090ae14400b002741bb1415amr3388521pjb.41.1694496297655; Mon, 11 Sep 2023 22:24:57 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::1030; envelope-from=filippo.argiolas@gmail.com; helo=mail-pj1-x1030.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:310504 Archived-At: On Tue, Sep 12, 2023 at 6:55=E2=80=AFAM Filippo Argiolas wrote: > > My point is that this technique _will_ break features, and I don't > > think it's reasonable to expect each one of them to be fixed > > individually. > > Sure and that's a pretty valid point. Thank you for the insight! > I could experiment a bit more with overlays. Maybe setting an overlay > for each node instead of directly changing the face property. FYI, found another potential source of breakage in cc-mode.el `c-before-change' that looks at the face properties instead of redoing syntax analysis. Nothing too impactful according to the comments there, but you're right about font-lock faces being sometimes used to infer node types.