From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#64759: Broken faces Date: Fri, 21 Jul 2023 21:35:08 +0300 Message-ID: <83o7k59kpv.fsf@gnu.org> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4174"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 64759@debbugs.gnu.org, maurooaranda@gmail.com To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jul 21 20:35:41 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 1qMuyV-0000UW-Cl for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 21 Jul 2023 20:35:35 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qMuy3-0000XA-HC; Fri, 21 Jul 2023 14:35:07 -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 1qMuxy-0000Ss-Kh for bug-gnu-emacs@gnu.org; Fri, 21 Jul 2023 14:35: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 1qMuxy-0002v4-C3 for bug-gnu-emacs@gnu.org; Fri, 21 Jul 2023 14:35:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qMuxy-0001qi-79 for bug-gnu-emacs@gnu.org; Fri, 21 Jul 2023 14:35:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 21 Jul 2023 18:35:02 +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.16899644827078 (code B ref 64759); Fri, 21 Jul 2023 18:35:02 +0000 Original-Received: (at 64759) by debbugs.gnu.org; 21 Jul 2023 18:34:42 +0000 Original-Received: from localhost ([127.0.0.1]:34853 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qMuxd-0001q6-KI for submit@debbugs.gnu.org; Fri, 21 Jul 2023 14:34:41 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49272) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qMuxa-0001pr-Jy for 64759@debbugs.gnu.org; Fri, 21 Jul 2023 14:34:39 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qMuxU-0002tM-Qn; Fri, 21 Jul 2023 14:34:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=TpjbxU0WOBe3QFNGxTfKHohaMKF10KMKVgvrHwGyWcs=; b=ZBieBhAbYgVKDD0w8aB6 YWzSNGlsZjrSd7+lMt8yDDBsCmHhO/o/2j1wDvKeltyQy+8FZnvhtkhe3YsEFB4uufhJyRKrCzY7k FMFohl2ptyXU2eBhGsN9LInVbv1PwtQoUZkK7wDZO0/Gn7zZCuygHGKKsKMXGPJiq3BQxOXht8NW6 07qYH6d9ENkQBOptSFRKa2FQM4jP1sXGpVSwhOi8pMxbgTMcDMuVNKKfVwar4MpJ3iXl/67zDU8tE 4TclBOZ9JfjNBdEt6xv5K1rNgMGdbLS9lhRa0uhy9QL1yu/dDuUjHMUvr4NTDVM/H0Hl4G0NBj36x jQkvk4QO91ncNw==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qMuxU-0008Ty-9p; Fri, 21 Jul 2023 14:34:32 -0400 In-Reply-To: <86tttxywxu.fsf@mail.linkov.net> (message from Juri Linkov on Fri, 21 Jul 2023 20:51:57 +0300) 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:265752 Archived-At: > From: Juri Linkov > Cc: maurooaranda@gmail.com, 64759@debbugs.gnu.org > Date: Fri, 21 Jul 2023 20:51:57 +0300 > > >> Thanks, I confirm that '((t nil)) solves this problem. > >> If a nil value can't be supported for faces, then > >> let's use '((t nil)). > > > > What do you expect this to produce for the face attributes? > > Let's see: when the definition is > > (defface display-time-date-and-time > nil > "Face for `display-time-format'." > :group 'mode-line-faces > :version "30.1") > > then the customization buffer is > > Hide display-time-date-and-time face: [sample] > State : NO CUSTOMIZATION DATA; not intended to be customized. > Face for ‘display-time-format’. > -- Empty face -- > Show All Attributes > > But when the definition is > > (defface display-time-date-and-time > '((t nil)) > "Face for `display-time-format'." > :group 'mode-line-faces > :version "30.1") > > the customization buffer is > > Hide display-time-date-and-time face: [sample] > State : STANDARD. > Face for ‘display-time-format’. > -- Empty face -- > Show All Attributes > > Looks nice. No strange error message about not intended to be customized. That's not what I asked. I asked about the face attributes. IOW, isn't (defface display-time-date-and-time '((t nil)) "Face for `display-time-format'." :group 'mode-line-faces :version "30.1") the same as (defface display-time-date-and-time '((t (:inherit default))) "Face for `display-time-format'." :group 'mode-line-faces :version "30.1") ?