From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#64759: Broken faces Date: Mon, 31 Jul 2023 20:42:22 +0300 Organization: LINKOV.NET Message-ID: <863514asg1.fsf@mail.linkov.net> References: <86fs5h4vo2.fsf@mail.linkov.net> <83fs5h1z38.fsf@gnu.org> <86bkg53cau.fsf@mail.linkov.net> <86ilad1bhn.fsf@mail.linkov.net> <83r0p19q0r.fsf@gnu.org> <86tttxywxu.fsf@mail.linkov.net> <83o7k59kpv.fsf@gnu.org> <86h6pxyubj.fsf@mail.linkov.net> <83lef99js7.fsf@gnu.org> <86351d5i22.fsf@mail.linkov.net> <83ila9qigb.fsf@gnu.org> <86r0ow53t7.fsf@mail.linkov.net> <835y67q42w.fsf@gnu.org> <86v8e4lz43.fsf@mail.linkov.net> <83wmyjj2gi.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38825"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) Cc: 64759@debbugs.gnu.org, maurooaranda@gmail.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jul 31 19:46:17 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1qQWyG-0009pK-Tu for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 31 Jul 2023 19:46:16 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qQWy5-00031H-9f; Mon, 31 Jul 2023 13:46:05 -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 1qQWy2-00030n-Bk for bug-gnu-emacs@gnu.org; Mon, 31 Jul 2023 13:46:02 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qQWy2-0007vE-3q for bug-gnu-emacs@gnu.org; Mon, 31 Jul 2023 13:46:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qQWy1-0006gc-Vi for bug-gnu-emacs@gnu.org; Mon, 31 Jul 2023 13:46:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 31 Jul 2023 17:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64759 X-GNU-PR-Package: emacs Original-Received: via spool by 64759-submit@debbugs.gnu.org id=B64759.169082550925632 (code B ref 64759); Mon, 31 Jul 2023 17:46:01 +0000 Original-Received: (at 64759) by debbugs.gnu.org; 31 Jul 2023 17:45:09 +0000 Original-Received: from localhost ([127.0.0.1]:53501 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qQWxB-0006fL-0h for submit@debbugs.gnu.org; Mon, 31 Jul 2023 13:45:09 -0400 Original-Received: from relay5-d.mail.gandi.net ([217.70.183.197]:32943) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qQWx9-0006et-LL for 64759@debbugs.gnu.org; Mon, 31 Jul 2023 13:45:08 -0400 Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id 87A931C0003; Mon, 31 Jul 2023 17:44:59 +0000 (UTC) In-Reply-To: <83wmyjj2gi.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 28 Jul 2023 21:49:49 +0300") X-GND-Sasl: juri@linkov.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:266425 Archived-At: >> 1. M-x make-empty-face RET foo RET >> 2. M-x customize-face RET foo RET >> >> Then output is: >> >> Hide Foo face: [sample] >> State : NO CUSTOMIZATION DATA; not intended to be customized. Please note that the problem is still unfixed for "NO CUSTOMIZATION DATA". >> nil >> -- Empty face -- > > We are mis-communicating. My point is that we need to explain in the > documentation the effect of such a defface when the face is realized > and displayed. Lisp programmers need to understand that to be able to > use this correctly and predictably. For example, in *scratch* eval: (put-text-property (point-min) (point-max) 'font-lock-face (make-empty-face 'foo)) Then 'C-u C-x =' shows: There are text properties here: font-lock-face foo Then clicking on 'foo' shows: Face: foo (sample) (customize this face) Documentation: Not documented as a face. Family: unspecified Foundry: unspecified Width: unspecified Height: unspecified Weight: unspecified Slant: unspecified Foreground: unspecified DistantForeground: unspecified Background: unspecified Underline: unspecified Overline: unspecified Strike-through: unspecified Box: unspecified Inverse: unspecified Stipple: unspecified Font: unspecified Fontset: unspecified Extend: unspecified Inherit: unspecified That's all that Lisp programmers need to know: that in an empty face all attributes are unspecified. >> > Only if "no better face to inherit from is available" in all of those >> > cases. Which I'm not sure is true. If you are sure, please tell why >> > the faces I put there are not better ideas. >> >> Because they will cause the same problem as with display-time-date-and-time, >> except that other faces are used less often, so it will take time until users >> will notice these problems. > > display-time-date-and-time is used on the mode line, where the colors > are different. The other faces are for buffer text, so the problems > with display-time-date-and-time don't necessarily apply. It's possible that these faces are applied over other faces that will break the default theme.