From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Hanwen Guo Newsgroups: gmane.emacs.bugs Subject: bug#68042: 30.0.50; `face-font' returns nil after adding remap relative for fontset Date: Tue, 26 Dec 2023 11:47:22 +0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3846"; mail-complaints-to="usenet@ciao.gmane.io" To: 68042@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Dec 26 17:57:31 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 1rIAkF-0000ob-Gn for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 26 Dec 2023 17:57:31 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rIAjr-0007u8-5j; Tue, 26 Dec 2023 11:57:07 -0500 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 1rIAjp-0007ti-0C for bug-gnu-emacs@gnu.org; Tue, 26 Dec 2023 11:57:05 -0500 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 1rIAjo-0007Ck-O2 for bug-gnu-emacs@gnu.org; Tue, 26 Dec 2023 11:57:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rIAjm-0003Js-Iy for bug-gnu-emacs@gnu.org; Tue, 26 Dec 2023 11:57:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Hanwen Guo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 26 Dec 2023 16:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 68042 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.170360976212686 (code B ref -1); Tue, 26 Dec 2023 16:57:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 26 Dec 2023 16:56:02 +0000 Original-Received: from localhost ([127.0.0.1]:34842 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rIAin-0003IF-El for submit@debbugs.gnu.org; Tue, 26 Dec 2023 11:56:02 -0500 Original-Received: from lists.gnu.org ([2001:470:142::17]:45624) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rI5zL-0006Et-01 for submit@debbugs.gnu.org; Tue, 26 Dec 2023 06:52:48 -0500 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 1rI5z8-0004VE-8s for bug-gnu-emacs@gnu.org; Tue, 26 Dec 2023 06:52:34 -0500 Original-Received: from mail-me3aus01olkn20801.outbound.protection.outlook.com ([2a01:111:f403:2818::801] 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 1rI5z5-0007ki-Tc for bug-gnu-emacs@gnu.org; Tue, 26 Dec 2023 06:52:34 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OHRYu/vsFOXrnHG/pySvBnExXS7trvl4v5oM0lu1Ja+u3VSvCvzTY8d+85hG+QXaxWHnzDP5CaOi95TFE4jBoqv86gYnFMTyvyIhmsnq5b1lrkTQ9W9grshoLaDTQMXaj4T+dSyb98KHApTFSEi/tj8cZ2o7A230i/WroUi4Drby2arlGw+e6Ys/xcqxKOvux76kIftjddLk51E85pVVn5LQspbyoCHlnkjDZa+pIrzf5XlmCEXRE9gdU6T74yk+6KO2XLBeaHbGjgkMJVhANZrP6Yd+ZlYJox1KqL+FTx5qiUDsKxME51+i9Cpffzng5HzU1xnaVb4kvqoyED7KRA== 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=yQQ9/HJBbZ8fHSJv0nKC0m2moa2aCrqhF2bmRwRhQAM=; b=dMGtjwkeRaKmxIpl9+neXecs8UKFmqdULsvO1GvF3DM8kgQgh4I9foXLuonOF/AJTOBKgN03/H1c4I/ei+nAj4fVWleBG6nIok8lmier0F/A0zS9LsJ7O0AxozfpZ8ugjH4/ow1OQcUz9arjxcCrjpYQpqAg5tDcW4hIajFD2vOwxlxbYNHCkb905c0tatKNAhPSNWHGoQxbu7y9kyp7SQAskOiYkJFZUQsHshri+/CitWPnJX6NmEWT1yvowjPmmevKipuVVY7YfcTnRBZBTVvAy4ESEoKGLtIyEJ+5HhNZUyoe80cm3HIS4SfkY6iiAk9OsGbVcl74x8QINLp19A== 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=yQQ9/HJBbZ8fHSJv0nKC0m2moa2aCrqhF2bmRwRhQAM=; b=r2oM87ZG+XhMEu0wxcsUoAQUWmG9J6onVFpKwow087fdhlwmCCDSesE11C/sbselWiQSG1owhSa6blWJ/5+tjvGutNZX5jmJZapTLvwPywEAZ5Y9lJd0V4x34G3TJrTUZJtiHfFuhTCuRFn/qJVrQzh4IYl8Znuw6JwjP1nDxLa4lk9LSH7p7rp7iDUvc7xBxS2Zg8LafO3uUvVLy72JqqssBzAJmMzBL2ULqdZFoFXnW7o8b8UxSi900CZflKQ14I26wKpmKlFbwQDZnmK0QTzDHlDxuQjYbugOIXYTr53iLTP5WdwohQj2gHEx37J220mtgQWplp6vzE0Qoyorbw== Original-Received: from ME3P282MB1505.AUSP282.PROD.OUTLOOK.COM (2603:10c6:220:a6::9) by MEYP282MB1448.AUSP282.PROD.OUTLOOK.COM (2603:10c6:220:bc::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7113.27; Tue, 26 Dec 2023 11:47:22 +0000 Original-Received: from ME3P282MB1505.AUSP282.PROD.OUTLOOK.COM ([fe80::956d:1dea:9c89:b953]) by ME3P282MB1505.AUSP282.PROD.OUTLOOK.COM ([fe80::956d:1dea:9c89:b953%2]) with mapi id 15.20.7113.027; Tue, 26 Dec 2023 11:47:22 +0000 Thread-Topic: 30.0.50; `face-font' returns nil after adding remap relative for fontset Thread-Index: AQHaN/EsNMErKFj2yUis+iBAtTYmBA== Accept-Language: en-US, zh-CN Content-Language: en-US x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [dIVPh6WmgrARprsnN+jUssPKdaYzbMTU] x-ms-publictraffictype: Email x-ms-traffictypediagnostic: ME3P282MB1505:EE_|MEYP282MB1448:EE_ x-ms-office365-filtering-correlation-id: cbd4f799-792f-4677-7216-08dc06086c2f x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Y/B3ZmVDQoLJDcvIIcVghyrnY5DrRRpQ4pYxssel0BcgC/ee/LEqUu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8yXE68Ja7aOc9U/WSc96Eca4S9AYds+CD5wzD88tJEEodcdMBW3IAIpXghxJfgim9Q+LgZYxmH41+ILO3Gelg2t6FBaXapIP1icDn6WgbaLbElhbkDs0E+a8bdviBNtdPHAT5+kP3rMBidJiP78OwZBnh3U6I+ZKMbTKy5HvEDDeQCx3SqU8ljNbVz2Jj81Dao7g9nii3hU1EgtCekK3A4pCtGpblkd/DeoMG0qTQ/7Cxi4qPN4ByiKJWtCw zR8SWimSoGGPCiZmuKpyNg2AF/ezTI3Zcoa5t+CeiKDGWe2AP+wG2No9sMznXM04zaIeV1Uaz9luf1fSS2WSxUNsOe7C1MJfyn X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: ME3P282MB1505.AUSP282.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: cbd4f799-792f-4677-7216-08dc06086c2f X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Dec 2023 11:47:22.3930 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: MEYP282MB1448 Received-SPF: pass client-ip=2a01:111:f403:2818::801; envelope-from=g.hanwen@outlook.com; helo=AUS01-ME3-obe.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Tue, 26 Dec 2023 11:55:59 -0500 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:276912 Archived-At: Providing the `:fontset' or `:font' face attribute in the `SPEC'=0A= argument of `face-remap-add-relative' with `FACE' argument being=0A= `'default' will make the `face-font' function return nil.=0A= =0A= The following Emacs Lisp code can reproduce this behavior under 'emacs=0A= -Q'.=0A= =0A= (create-fontset-from-fontset-spec=0A= =A0(font-xlfd-name=0A= =A0 (font-spec :family "Source Serif"=0A= =A0 =A0 =A0 =A0 =A0 =A0 =A0:registry "fontset-variable pitch regular")))=0A= =0A= (set-face-attribute 'variable-pitch nil=0A= =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 :family "Source Serif"=0A= =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 :fontset "fontset-variable pitch re= gular")=0A= =0A= (let ((var-pitch (face-attribute 'variable-pitch :family))=0A= =A0 =A0 =A0 (var-fontset (face-attribute 'variable-pitch :fontset)))=0A= =A0 (setq mixed-pitch-variable-cookie=0A= =A0 =A0 =A0 =A0 (face-remap-add-relative 'default :family var-pitch :fontse= t var-fontset)))=0A= =0A= (face-font 'default) ;; nil=0A= =0A= (face-remap-remove-relative mixed-pitch-variable-cookie)=0A= =0A= (face-font 'default) ;; non-nil=0A= =0A= =0A= In GNU Emacs 30.0.50 (build 1, x86_64-w64-mingw32) of 2023-12-11 built=0A= =A0on MASELLUM-G14=0A= Repository revision: 9434ad25ce2747864e0bcf5665f65eb65a079178=0A= Repository branch: master=0A= Windowing system distributor 'Microsoft Corp.', version 10.0.22631=0A= System Description: Microsoft Windows 10 Pro (v10.0.2009.22631.2861)=0A= =0A= Configured using:=0A= =A0'configure --with-mailutils --without-pop --with-json=0A= =A0--with-tree-sitter --with-sqlite3 --with-xpm --with-jpeg --with-tiff=0A= =A0--with-gif --with-png --with-rsvg --with-webp --with-modules=0A= =A0--without-dbus --without-compress-install --with-native-compilation=3Dao= t=0A= =A0'CFLAGS=3D-O2 -fno-optimize-sibling-calls''=0A= =0A= Configured features:=0A= ACL GIF GMP GNUTLS HARFBUZZ JPEG JSON LCMS2 LIBXML2 MODULES NATIVE_COMP=0A= NOTIFY W32NOTIFY PDUMPER PNG RSVG SOUND SQLITE3 THREADS TIFF=0A= TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XPM ZLIB=0A= =0A= Important settings:=0A= =A0 value of $LANG: CHS=0A= =A0 locale-coding-system: cp65001=0A= =0A= Major mode: Lisp Interaction=0A= =0A= Minor modes in effect:=0A= =A0 tooltip-mode: t=0A= =A0 global-eldoc-mode: t=0A= =A0 eldoc-mode: t=0A= =A0 show-paren-mode: t=0A= =A0 electric-indent-mode: t=0A= =A0 mouse-wheel-mode: t=0A= =A0 tool-bar-mode: t=0A= =A0 menu-bar-mode: t=0A= =A0 file-name-shadow-mode: t=0A= =A0 global-font-lock-mode: t=0A= =A0 font-lock-mode: t=0A= =A0 blink-cursor-mode: t=0A= =A0 minibuffer-regexp-mode: t=0A= =A0 line-number-mode: t=0A= =A0 indent-tabs-mode: t=0A= =A0 transient-mark-mode: t=0A= =A0 auto-composition-mode: t=0A= =A0 auto-encryption-mode: t=0A= =A0 auto-compression-mode: t=0A= =0A= Load-path shadows:=0A= None found.=0A= =0A= Features:=0A= (shadow sort mail-extr emacsbug message mailcap yank-media puny dired=0A= dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068=0A= epg-config gnus-util text-property-search mm-decode mm-bodies mm-encode=0A= mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047=0A= rfc2045 ietf-drums mm-util mail-prsvr mail-utils face-remap comp-run=0A= bytecomp byte-compile comp-common rx time-date subr-x cl-loaddefs cl-lib=0A= china-util rmc iso-transl tooltip cconv eldoc paren electric uniquify=0A= ediff-hook vc-hooks lisp-float-type elisp-mode mwheel dos-w32 ls-lisp=0A= disp-table term/w32-win w32-win w32-vars term/common-win tool-bar dnd=0A= fontset image regexp-opt fringe tabulated-list replace newcomment=0A= text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow=0A= isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax=0A= font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic=0A= indonesian philippine cham georgian utf-8-lang misc-lang vietnamese=0A= tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek=0A= romanian slovak czech european ethiopic indian cyrillic chinese=0A= composite emoji-zwj charscript charprop case-table epa-hook=0A= jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs=0A= theme-loaddefs faces cus-face macroexp files window text-properties=0A= overlay sha1 md5 base64 format env code-pages mule custom widget keymap=0A= hashtable-print-readable backquote threads w32notify w32 lcms2 multi-tty=0A= move-toolbar make-network-process native-compile emacs)=0A= =0A= Memory information:=0A= ((conses 16 64497 9228) (symbols 48 6044 0) (strings 32 17178 1453)=0A= =A0(string-bytes 1 484111) (vectors 16 13625)=0A= =A0(vector-slots 8 351812 11898) (floats 8 45 37) (intervals 56 347 19)=0A= =A0(buffers 992 10))=0A=