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: Wed, 7 Sep 2022 20:49:06 +0200 Message-ID: <5f92d116-3cfd-e4b4-0caf-b2337fa1bd7f@orange.fr> 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="8395"; 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: gregory@heytings.org To: 57652@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 07 20:50:59 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 1oW08Z-0001xb-Na for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 07 Sep 2022 20:50:59 +0200 Original-Received: from localhost ([::1]:41844 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oW08Y-0005v2-9i for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 07 Sep 2022 14:50:58 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49460) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oW07e-0005tL-6q for bug-gnu-emacs@gnu.org; Wed, 07 Sep 2022 14:50:08 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39366) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oW07d-00086e-U2 for bug-gnu-emacs@gnu.org; Wed, 07 Sep 2022 14:50:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oW07d-0008Sw-Om for bug-gnu-emacs@gnu.org; Wed, 07 Sep 2022 14:50:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: David Ponce Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 07 Sep 2022 18:50:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 57652 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.166257657232497 (code B ref -1); Wed, 07 Sep 2022 18:50:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 7 Sep 2022 18:49:32 +0000 Original-Received: from localhost ([127.0.0.1]:56298 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oW07A-0008S4-2n for submit@debbugs.gnu.org; Wed, 07 Sep 2022 14:49:32 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:34776) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oW078-0008Rx-2R for submit@debbugs.gnu.org; Wed, 07 Sep 2022 14:49:30 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54336) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oW077-0005Pp-S6 for bug-gnu-emacs@gnu.org; Wed, 07 Sep 2022 14:49:29 -0400 Original-Received: from smtp09.smtpout.orange.fr ([80.12.242.131]:61277 helo=smtp.smtpout.orange.fr) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oW06s-0007w6-2M for bug-gnu-emacs@gnu.org; Wed, 07 Sep 2022 14:49:28 -0400 Original-Received: from [192.168.1.53] ([84.99.156.162]) by smtp.orange.fr with ESMTPA id W06kozW7ebJVVW06loD5Jy; Wed, 07 Sep 2022 20:49:09 +0200 X-ME-Helo: [192.168.1.53] X-ME-Auth: ZGFfdmlkQHdhbmFkb28uZnI= X-ME-Date: Wed, 07 Sep 2022 20:49:09 +0200 X-ME-IP: 84.99.156.162 Content-Language: fr, en-US Received-SPF: pass client-ip=80.12.242.131; envelope-from=da_vid@orange.fr; helo=smtp.smtpout.orange.fr X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FROM=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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:241803 Archived-At: Hello, Since below commit: Gregory Heytings 2022-09-02 22:30:25 +0200 commit d0a66f3e0e668d8c12c54436740c62f8e238a664 Display a warning for some uses of nil in face attributes. * src/xfaces.c (HANDLE_INVALID_NIL_VALUE): New macro, which displays a warning for invalid uses of nil as a face attribute value. (Finternal_set_lisp_face_attribute): Use the macro for the attributes :foreground, :distant-foreground and :background. When opening a term window (M-x term) for the 1st time, the below messages are displayed in the *Messages* buffer: Warning: setting attribute ‘:foreground’ of face ‘term’: nil value is invalid, use ‘unspecified’ instead. Warning: setting attribute ‘:background’ of face ‘term’: nil value is invalid, use ‘unspecified’ instead. The small patch below fixed the issue for me: diff --git a/term.el b/term.el index 797fb18074..c564a5429a 100644 --- a/term.el +++ b/term.el @@ -755,17 +755,19 @@ ansi-term-color-vector term-color-bright-cyan term-color-bright-white]) -(defcustom term-default-fg-color nil - "If non-nil, default color for foreground in Term mode." +(defcustom term-default-fg-color 'unspecified + "Default color for foreground in Term mode." :group 'term - :type '(choice (const nil) (string :tag "color"))) + :type '(choice (const unspecified) + (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." +(defcustom term-default-bg-color 'unspecified + "Default color for foreground in Term mode." :group 'term - :type '(choice (const nil) (string :tag "color"))) + :type '(choice (const unspecified) + (string :tag "color"))) (make-obsolete-variable 'term-default-bg-color "use the face `term' instead." "24.3") Thanks! Configured using: 'configure --with-x-toolkit=gtk3 --with-cairo PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS WEBP X11 XDBE XIM XINPUT2 XPM GTK3 ZLIB Important settings: value of $LC_TIME: fr_FR.utf8 value of $LANG: fr_FR.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: shell-dirtrack-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: None found.