From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: me Newsgroups: gmane.emacs.bugs Subject: bug#56725: 29.0.50; face-remapping-alist does not work correctly for mode-line face Date: Sat, 23 Jul 2022 22:08:21 +0800 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36124"; mail-complaints-to="usenet@ciao.gmane.io" To: 56725@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jul 23 17:08:23 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 1oFGjv-0009B3-0K for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 Jul 2022 17:08:23 +0200 Original-Received: from localhost ([::1]:50548 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oFGjt-0000fa-Uk for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 Jul 2022 11:08:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48734) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oFGja-0000f8-KM for bug-gnu-emacs@gnu.org; Sat, 23 Jul 2022 11:08:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56290) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oFGja-0002gD-Bn for bug-gnu-emacs@gnu.org; Sat, 23 Jul 2022 11:08:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oFGjZ-0007KZ-Vu for bug-gnu-emacs@gnu.org; Sat, 23 Jul 2022 11:08:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: me Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 Jul 2022 15:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 56725 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.165858883328084 (code B ref -1); Sat, 23 Jul 2022 15:08:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 23 Jul 2022 15:07:13 +0000 Original-Received: from localhost ([127.0.0.1]:46035 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oFGil-0007It-VU for submit@debbugs.gnu.org; Sat, 23 Jul 2022 11:07:12 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:32802) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oFFt7-0005eX-P3 for submit@debbugs.gnu.org; Sat, 23 Jul 2022 10:13:53 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39836) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oFFt7-000867-7F for bug-gnu-emacs@gnu.org; Sat, 23 Jul 2022 10:13:49 -0400 Original-Received: from mail-me3aus01acsn2080b.outbound.protection.outlook.com ([2a01:111:f403:7004::80b]:4206 helo=AUS01-ME3-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oFFt3-0006UJ-UZ for bug-gnu-emacs@gnu.org; Sat, 23 Jul 2022 10:13:48 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dCEu0nKxM56Q30UKImTO2FKRSd5pf5LvpGAvHzips57wcxfoym/EMsGVRhk2NgsTge4AJRobRM3B38QIJWB74Pg18jkChJ1Ckh8ZaK8qu6BYVBXaxmIzVPx8di1e4FtK/vP6S7p0vPye8I6Wm+uVQSU0cd8ciJlq6qqugtBNTZlf5Rlihk9urstt+2ScRoUvYvGLlt4I5JwuwCQbvz9F1xSv9Gw08CRUoYTcfD7mmPf+7ZagaDgMKqOWaEZlgPNvjFtCPJIWkqX1GK4fkOoWBAoxIQ100d8ppxnknhoXcmqOkVwWL56axddxYok2kIQpfMbMHE6zBSxK+oNIbMU/Vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=HU0Qxe/+lA8wedDzabj85WBnUBcIbZoWTebWeAzcLHU=; b=mWZeXczARb3aWy3JLHK4jSMe4Dj75iEyKmQEGwAR6lcobYrU3Klwk0kbz4DrKSqPTCc9NR8yB0shAOwQ+bJARMFqOjlyamcCf5Jkxa/qjImyOiqJW55BbD1RgF5aE5FTat626g6nx8135jgWfY8DFUOE9gypmfRhriZH7cM0jnlVFytElX19E91L7gtpQ3v7qF2GoAeoQNYKIiIS+IHWUDh93XTiljiocsie8PjFYe9KOO0/u5Z/n0wYOS8Fg/hap9L85kl4pxcz+u8u7EnT8umjWsx2+OLm/J/3+ak49dpjVjSLu72PGnTWBTeadULieT355AzMx/aY9dvoUQ+F/g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=HU0Qxe/+lA8wedDzabj85WBnUBcIbZoWTebWeAzcLHU=; b=V/qZd1+U73srm2hLeZNQMmiTxr6MFv7Q6PEqQnIuY+9dH9p/UAsLFjBgeaxo9tmplLqf5Yx74djAhvolSMAubKFjxWdnp8mqYYuA8aY/AGbKNYAtoFNYYbUrbUVbNK0n9kkTt1ztYRzt66J1/Vhj97Go442bVEqi3DwPDDEcU1LFY0Tj/FYod+PDHhg+HMMWnSWTmUL4/AWf+Gt5ECQvHdm5g9H3zEJ3/IRPWkQrfSdtkNhU7Ib+kaqEhX9fIVO2a/bcFgpoT644R4GrLHvK34mdVLtBZrljNCgNDRPDcDL0kvOCAAboLBZN/4D2GznEyhpNMhZLIAeH+MQNbm9rHw== Original-Received: from ME3P282MB2403.AUSP282.PROD.OUTLOOK.COM (2603:10c6:220:109::13) by MEYP282MB3611.AUSP282.PROD.OUTLOOK.COM (2603:10c6:220:179::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5458.19; Sat, 23 Jul 2022 14:08:32 +0000 Original-Received: from ME3P282MB2403.AUSP282.PROD.OUTLOOK.COM ([fe80::e44f:e82:f32c:7773]) by ME3P282MB2403.AUSP282.PROD.OUTLOOK.COM ([fe80::e44f:e82:f32c:7773%8]) with mapi id 15.20.5458.021; Sat, 23 Jul 2022 14:08:32 +0000 X-TMN: [B65tZzqGci6AjZiwARxAjgcbfWAau2aBqbJ2Vm6SE+I=] X-ClientProxiedBy: PS2PR02CA0090.apcprd02.prod.outlook.com (2603:1096:300:5c::30) To ME3P282MB2403.AUSP282.PROD.OUTLOOK.COM (2603:10c6:220:109::13) X-Microsoft-Original-Message-ID: <877d439b1m.fsf@artixdesk.mail-host-address-is-not-set> X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 587f34a5-940e-4962-9f72-08da6cb4d0f9 X-MS-TrafficTypeDiagnostic: MEYP282MB3611:EE_ X-Microsoft-Antispam: BCL:0; X-Microsoft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ppooGXNrGOSjhol1sRgXxwTGh+PxYT3yxGhC23SiBMtr6CVD0lIEPnCiEPotJ6BMDTTmfOz4JyH4me1Urnv1xAwo08EMdt1nMpFOdEqTrUS3sV+2HvJqXLc0TZ+NOLWf+xizGKUViE8GLSHznXRnGiUvtfESMSBKEHp0ENr6klseUrI28sY8pYPy3+slfCWYp4hUBahJmXhcDaRgU+nPfmRA9zLYnWdTUKO4azgwFCD9UtNUVCdf+Wt7UgcsjL53AxfdBmgM0+tJLapg//cQMNWpaJXd4BcFgFx+UV0zMA3ShNYOKXKzcFRFgDY/aQcGzUCIj6OduUteGYSPfW78IgobJ5BhFfju+CRzPwmqR5Yp7k/peLJ9RFq3phmBiZUThfAcy11dbyo10vdHhIX/LJGTJKHSa VenuEf0+Q9ld20ZACjWKdMtt+tY6BeHBkPCOhPY29onF71QjoDlIqyxwe6Sqo6xhmyYHLnrpOcqWf8POZi2ihzF1wzAaMhwLdD X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 587f34a5-940e-4962-9f72-08da6cb4d0f9 X-MS-Exchange-CrossTenant-AuthSource: ME3P282MB2403.AUSP282.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Jul 2022 14:08:31.8476 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MEYP282MB3611 Received-SPF: pass client-ip=2a01:111:f403:7004::80b; envelope-from=pRoMMMModE@outlook.com; helo=AUS01-ME3-obe.outbound.protection.outlook.com X-Spam_score_int: 0 X-Spam_score: -0.1 X-Spam_bar: / X-Spam_report: (-0.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HK_RANDOM_ENVFROM=0.998, HK_RANDOM_FROM=0.998, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sat, 23 Jul 2022 11:07:11 -0400 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:237758 Archived-At: Hi, I was tring to make the face mode-line dynamic and buffer-local by remapping it via face-remapping-alist. However the remapping for mode-line-face does not take effect immediately, in fact I need to reload current theme or load a new theme; and the mode-line-face across all buffers are always the same face, even though the buffer local value of face-remapping-alist have mapped mode-line-face the different faces in those buffers. To reproduce the bug: 1. Launch Emacs with emacs -Q. 2. Eval this in scratch buffer: (set (make-local-variable 'face-remapping-alist) (copy-tree '((mode-line error)))) 3. The font color of mode-line of the scratch buffer should change to red but it does not. 4. Load a random built-in theme like adwaita by M-x load-theme, now the font color of mode-line changed to red, but all buffer's mode-line' font also changed to red, in fact open a new buffer will reset the face of mode-line to the theme's default. Now sure if it is a expected behavior, I can set a buffer-local remapping for other faces, so I assume this is a bug. --------------------------- In GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.34, cairo version 1.17.6) of 2022-07-23 built on artixdesk Repository revision: 33602132acdf0ff9148aaeea32423c683529f039 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12101004 System Description: Artix Linux Configured using: 'configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib --localstatedir=/var --mandir=/usr/share/man --with-gameuser=:games --with-modules --without-libotf --without-m17n-flt --without-gconf --with-xinput2 --with-sound=no --without-gpm '--program-transform-name=s/\([ec]tags\)/\1.emacs/' 'CFLAGS=-march=native -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection' LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBSYSTEMD LIBXML2 MODULES NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS WEBP X11 XDBE XIM XINPUT2 XPM GTK3 ZLIB Important settings: value of $LC_COLLATE: C value of $LC_CTYPE: en_US.UTF-8 value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=fcitx5 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-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. Features: (shadow sort mail-extr emacsbug message mailcap yank-media puny dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util text-property-search mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils time-date subr-x crm thingatpt help-fns radix-tree help-mode cl-loaddefs cl-lib rmc iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting cairo move-toolbar gtk x-toolkit xinput2 x multi-tty make-network-process emacs) Memory information: ((conses 16 42583 12512) (symbols 48 5338 0) (strings 32 14742 1440) (string-bytes 1 463252) (vectors 16 9799) (vector-slots 8 151397 18213) (floats 8 23 21) (intervals 56 1186 0) (buffers 992 12))