From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: David Ponce Newsgroups: gmane.emacs.bugs Subject: bug#57652: 29.0.50; Warning setting attribute of face =?UTF-8?Q?=E2=80=98term=E2=80=99?= Date: Thu, 8 Sep 2022 14:34:14 +0200 Message-ID: <7b0977cd-a236-c9ad-887a-f23c98ed4a6e@orange.fr> References: <5f92d116-3cfd-e4b4-0caf-b2337fa1bd7f@orange.fr> <878rmua277.fsf@yahoo.com> <319e3926-7c22-cabd-43dd-a02f3a01c734@orange.fr> <83czc6fe9t.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27803"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.1 Cc: luangruo@yahoo.com, 57652@debbugs.gnu.org, gregory@heytings.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 08 14:47:41 2022 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 1oWGwW-00072D-Dt for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 08 Sep 2022 14:47:40 +0200 Original-Received: from localhost ([::1]:42204 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oWGwV-0003Ai-FY for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 08 Sep 2022 08:47:39 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43402) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oWGkJ-00045d-3b for bug-gnu-emacs@gnu.org; Thu, 08 Sep 2022 08:35:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40554) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oWGkI-0000rq-Pt for bug-gnu-emacs@gnu.org; Thu, 08 Sep 2022 08:35:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oWGkI-0006ih-Lb for bug-gnu-emacs@gnu.org; Thu, 08 Sep 2022 08:35:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: David Ponce Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 08 Sep 2022 12:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57652 X-GNU-PR-Package: emacs Original-Received: via spool by 57652-submit@debbugs.gnu.org id=B57652.166264046525776 (code B ref 57652); Thu, 08 Sep 2022 12:35:02 +0000 Original-Received: (at 57652) by debbugs.gnu.org; 8 Sep 2022 12:34:25 +0000 Original-Received: from localhost ([127.0.0.1]:57485 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oWGjh-0006hg-2j for submit@debbugs.gnu.org; Thu, 08 Sep 2022 08:34:25 -0400 Original-Received: from smtp02.smtpout.orange.fr ([80.12.242.124]:61537 helo=smtp.smtpout.orange.fr) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oWGjZ-0006hQ-Gg for 57652@debbugs.gnu.org; Thu, 08 Sep 2022 08:34:23 -0400 Original-Received: from [192.168.1.53] ([84.99.156.79]) by smtp.orange.fr with ESMTPA id WGjWoM0OV9qatWGjWoU7Xe; Thu, 08 Sep 2022 14:34:16 +0200 X-ME-Helo: [192.168.1.53] X-ME-Auth: ZGFfdmlkQHdhbmFkb28uZnI= X-ME-Date: Thu, 08 Sep 2022 14:34:16 +0200 X-ME-IP: 84.99.156.79 Content-Language: fr, en-US In-Reply-To: <83czc6fe9t.fsf@gnu.org> 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:241867 Archived-At: On 08/09/2022 10:42, Eli Zaretskii wrote: >> Cc: 57652@debbugs.gnu.org, gregory@heytings.org >> Date: Thu, 8 Sep 2022 10:22:31 +0200 >> From: David Ponce >> >> "Apart from the values given below, each face attribute can have the >> value ‘unspecified’. This special value means that the face doesn’t >> specify that attribute directly. An ‘unspecified’ attribute tells Emacs >> to refer instead to a parent face (see the description ‘:inherit’ >> attribute below); or, failing that, to an underlying face (*note >> Displaying Faces::). (However, ‘unspecified’ is not a valid value in >> ‘defface’.)" >> >> So it seems that unspecified is not allowed in defface. > > Where does it say that unspecified is not allowed? (And this doc > string is from set-face-attribute, not from defface.) I mentioned what is currently in the Emacs Lisp reference manual (lisp.info): (elisp)Top > Display > Faces > Face Attributes >> So, how to specify a missing attribute excepted by using nil in the >> defface used in term.el? > > If you don't have anything to say about an attribute, just don't > mention it in defface. That's what unspecified means, as the doc > string says. So I'm unsure why you would need "to specify a missing > attribute". It is not me, it is how it is currently implemented in term.el: (defcustom term-default-fg-color nil "If non-nil, default color for foreground in Term mode." :group 'term :type '(choice (const nil) (string :tag "color"))) (make-obsolete-variable 'term-default-fg-color "use the face `term' instead." "24.3") (defcustom term-default-bg-color nil "If non-nil, default color for foreground in Term mode." :group 'term :type '(choice (const nil) (string :tag "color"))) (make-obsolete-variable 'term-default-bg-color "use the face `term' instead." "24.3") (defface term `((t :foreground ,term-default-fg-color :background ,term-default-bg-color :inherit default)) "Default face to use in Term mode." :group 'term)