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#51595: 26.3; Face attribute value `unspecified' in `defface' breaks Customize UI Date: Thu, 04 Nov 2021 08:49:54 +0200 Message-ID: <83wnlofm99.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22085"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 51595@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Nov 04 07:51:39 2021 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 1miWb5-0005Wm-5u for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 04 Nov 2021 07:51:39 +0100 Original-Received: from localhost ([::1]:58550 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1miWb4-0004xM-31 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 04 Nov 2021 02:51:38 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51728) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1miWaU-0004TF-9M for bug-gnu-emacs@gnu.org; Thu, 04 Nov 2021 02:51:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58550) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1miWaU-0008Dv-0J for bug-gnu-emacs@gnu.org; Thu, 04 Nov 2021 02:51:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1miWaT-0004Os-VM for bug-gnu-emacs@gnu.org; Thu, 04 Nov 2021 02:51:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 04 Nov 2021 06:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51595 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 51595-submit@debbugs.gnu.org id=B51595.163600860216829 (code B ref 51595); Thu, 04 Nov 2021 06:51:01 +0000 Original-Received: (at 51595) by debbugs.gnu.org; 4 Nov 2021 06:50:02 +0000 Original-Received: from localhost ([127.0.0.1]:41863 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1miWZW-0004NJ-EK for submit@debbugs.gnu.org; Thu, 04 Nov 2021 02:50:02 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:54176) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1miWZV-0004Mo-1P for 51595@debbugs.gnu.org; Thu, 04 Nov 2021 02:50:01 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:56428) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1miWZP-00082D-MH; Thu, 04 Nov 2021 02:49:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=fRdeoral7bx8LHtiExIuj1idFfUP3l4/XPasrhxb+tQ=; b=oatuKLVZ8+IW 51y31UIK2MaW8VG/0Qp+2NXM+UctBsAYZxUiTsTjojeMMpRa+dsHPDXpNk0tTQMVEfcVF3bZfOR84 iBd8zu2hfU6kq9WLJGXO3NEp7ax0CWJpP8p6xJLjwVSXVIrHCNN0WsQnKI3lKDqkp1t3mlOjXGwPl ST1e0zNil94cGPXJPwIzeEAapBrDhpdAa1TR1N4yZ213Wh/dyLANZb+lmvAb6TljFQp4C4x+WepGs YjzOytl1fXYUwlWWgmxtgGYc+o/4t3xf9Trz1ePraSJFvcVjoKfmQfLeIJAZNhMi5c3mQlmfUIq3G Qon+TMLK5OGthCW1uq/Mdw==; Original-Received: from [87.69.77.57] (port=4829 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 1miWZP-0007hE-5c; Thu, 04 Nov 2021 02:49:55 -0400 In-Reply-To: (message from Drew Adams on Wed, 3 Nov 2021 21:09:41 +0000) 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" Xref: news.gmane.io gmane.emacs.bugs:218905 Archived-At: > From: Drew Adams > Date: Wed, 3 Nov 2021 21:09:41 +0000 > > emacs -Q > > (defface foo '((t :background "LightBlue")) "DOC ..." :group 'faces) > (defface bar '((t :foreground unspecified :background "LightBlue")) > "DOC..." :group 'faces) Don't do that. Using 'unspecified' in user code is an error. Patches to the docs to that effect are welcome. > The doc (Elisp manual) draws no such distinction - speaks of no such > limitation. It just lists `unspecified' as one of the possible face > attributes: > > "Apart from the values given below, each face attribute can have the > value 'unspecified'." "Can have" is a notice to Lisp programmers to expect such a value, it is not an invitation to use it in defface or any other face specs. the correct way of not specifying a value is to use nil or (better) not to mention the attribute at all. Think about how Emacs merges faces, and you will understand why.