GNU logs - #68042, boring messages


Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#68042: 30.0.50; `face-font' returns nil after adding remap relative for fontset
Resent-From: Hanwen Guo <g.hanwen@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Tue, 26 Dec 2023 16:57:02 +0000
Resent-Message-ID: <handler.68042.B.170360976212686 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 68042
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: 68042 <at> debbugs.gnu.org
X-Debbugs-Original-To: "bug-gnu-emacs@HIDDEN" <bug-gnu-emacs@HIDDEN>
Received: via spool by submit <at> debbugs.gnu.org id=B.170360976212686
          (code B ref -1); Tue, 26 Dec 2023 16:57:02 +0000
Received: (at submit) by debbugs.gnu.org; 26 Dec 2023 16:56:02 +0000
Received: from localhost ([127.0.0.1]:34842 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rIAin-0003IF-El
	for submit <at> debbugs.gnu.org; Tue, 26 Dec 2023 11:56:02 -0500
Received: from lists.gnu.org ([2001:470:142::17]:45624)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <g.hanwen@HIDDEN>) id 1rI5zL-0006Et-01
 for submit <at> debbugs.gnu.org; Tue, 26 Dec 2023 06:52:48 -0500
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 <g.hanwen@HIDDEN>)
 id 1rI5z8-0004VE-8s
 for bug-gnu-emacs@HIDDEN; Tue, 26 Dec 2023 06:52:34 -0500
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 <g.hanwen@HIDDEN>)
 id 1rI5z5-0007ki-Tc
 for bug-gnu-emacs@HIDDEN; 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==
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
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
From: Hanwen Guo <g.hanwen@HIDDEN>
Thread-Topic: 30.0.50; `face-font' returns nil after adding remap relative for
 fontset
Thread-Index: AQHaN/EsNMErKFj2yUis+iBAtTYmBA==
Date: Tue, 26 Dec 2023 11:47:22 +0000
Message-ID: <ME3P282MB150507B0F2C5762C9BC5E78E9498A@HIDDEN>
Accept-Language: en-US, zh-CN
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
msip_labels: 
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/LEqUu0TL7l1j6hZvtLFcepCUSljgkTiy4WD03mSxEYTEqYyyMARMuqMRBW8WYbHIX2o7whlT8PeBLgFv0XJvIbJyN8O7tP4cEYHZumG0UjG8rBbwEvW0COaWMxOuyYAOQ6q09vK5/Xlqycz7jI3hQqZMJagZQFkIuPzfG7CS1vXzKKcH8RtZ/nVANXeMd1Y0nEnhtV7R8tQ7gmfEIa+2UNbVP7yzjamuHVNOUh+KfqDr2OxrxNZbNq9CO382y9WKqVknlfhYUgxtHqoY+8V38XCJycZa/oIM5CkyoJTOHGKOCn5o7Ltzd4ZCysSGzYoP+3XSBg/7BP2jESxdE+fGw+e40KBt2Fmt8ZQghyQzv86gfRNuDPxduvrF7wo90dsQRZ+kWzc4Tf+RgGBpwWcLaeRqCyLosGutkj3PQJa9Jn7WVJBVRHf7cm+bE3RPHDl0/VGIT41K3zs2mjubX/OHcnhyqR25B7kRpeZqJCyd6xv0Rf9dkwUG2RpL/B53R2Tzis7PogTBXZme6eh
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: SkcdqFOl7iczHdIJr6DE1IOMVwShuvOiAQ4cyShhO++sjAGcQ10YLR9Gxzcc+JWSIh9/a9Q1l18vwzG0pNKNvPVuH6m2KegSkhsCAzd1Wv8m7Vwb9NeBXusee5KKkRVKEK6CEsQNuApBNonmuD+x2jY4DKAz5uUOl++zVLZtwowohtpHEVzbM5RbLDNEEgOMjEsl7B9wE2i7h0PqijMEUdk50Kst19gMFy88GAzRBIz1mbksSP6HVXvzLtUsu8JbRlZxXHw1ZsbyIMUaOuZ7LWMe6nVp48YXI5+p8V7peK/zI1R14T+MTsQiWdeSL+BFZdr0feYsuuk76Z9fxiVib7xStn50BNThKv7vcEeZFZJatbWceeg0S74zsNjqIYLQNcywiwQ7MQczkvXTi7yXRU0avl/rlBsxLBw3zJHity6uSypaNMiy85vB2mbtInEsMH2bFRlZriGthQZLtIP8gSvITMJJcCv0sxEzClqrUdHlfOq01blrEpnBeyngsm8yXE68Ja7aOc9U/WSc96Eca4S9AYds+CD5wzD88tJEEodcdMBW3IAIpXghxJfgim9Q+LgZYxmH41+ILO3Gelg2t6FBaXapIP1icDn6WgbaLbElhbkDs0E+a8bdviBNtdPHAT5+kP3rMBidJiP78OwZBnh3U6I+ZKMbTKy5HvEDDeQCx3SqU8ljNbVz2Jj81Dao7g9nii3hU1EgtCekK3A4pCtGpblkd/DeoMG0qTQ/7Cxi4qPN4ByiKJWtCwzR8SWimSoGGPCiZmuKpyNg2AF/ezTI3Zcoa5t+CeiKDGWe2AP+wG2No9sMznXM04zaIeV1Uaz9luf1fSS2WSxUNsOe7C1MJfynRxsVjxj9aYE8dYzNCbFj9UTuve0DuFJ3SRnuYB4LD+Uz26mvqQDalsDseYCzLKEJmAnSljMzHfSoGKoYjllS0QhcEYfPOF4QC6A4BpR/pEdlp2lr/fjgjNnezF+hOfgEvNam4Bk1BFrN+pCKKUn6/XdUoSCB820FxQG0oEnj8VMd+4MU33yNaHmATrY8r3cSvXwNivzbYthiqN79jxeOJ8x7RU6HVqP9g3C0sVhx8ah8rP+vxoEzAB/gui2D0EwDmrFxxF+zDzK/gXYY/1DYSJ6vH2lONG2hIB7nMUZsKn00Eatyua6etHxIWoMVKK3yhvhmPIWqPOsIain3b0Y/nj8ykeJHfLmqj+R1ZwXO6HRgJYydXiai027PJw==
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
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@HIDDEN;
 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-Spam-Score: 1.0 (+)
X-Mailman-Approved-At: Tue, 26 Dec 2023 11:55:59 -0500
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

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=




Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Hanwen Guo <g.hanwen@HIDDEN>
Subject: bug#68042: Acknowledgement (30.0.50; `face-font' returns nil
 after adding remap relative for fontset)
Message-ID: <handler.68042.B.170360976212686.ack <at> debbugs.gnu.org>
References: <ME3P282MB150507B0F2C5762C9BC5E78E9498A@HIDDEN>
X-Gnu-PR-Message: ack 68042
X-Gnu-PR-Package: emacs
Reply-To: 68042 <at> debbugs.gnu.org
Date: Tue, 26 Dec 2023 16:57:02 +0000

Thank you for filing a new bug report with debbugs.gnu.org.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 bug-gnu-emacs@HIDDEN

If you wish to submit further information on this problem, please
send it to 68042 <at> debbugs.gnu.org.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

--=20
68042: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D68042
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems


Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#68042: 30.0.50; `face-font' returns nil after adding remap relative for fontset
Resent-From: Eli Zaretskii <eliz@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Tue, 26 Dec 2023 17:50:01 +0000
Resent-Message-ID: <handler.68042.B68042.170361297525762 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 68042
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Hanwen Guo <g.hanwen@HIDDEN>
Cc: 68042 <at> debbugs.gnu.org
Received: via spool by 68042-submit <at> debbugs.gnu.org id=B68042.170361297525762
          (code B ref 68042); Tue, 26 Dec 2023 17:50:01 +0000
Received: (at 68042) by debbugs.gnu.org; 26 Dec 2023 17:49:35 +0000
Received: from localhost ([127.0.0.1]:34916 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rIBYc-0006hQ-Vo
	for submit <at> debbugs.gnu.org; Tue, 26 Dec 2023 12:49:35 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:42390)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>)
 id 1rIBYa-0006hA-SV; Tue, 26 Dec 2023 12:49:33 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1rIBYX-0007ys-A4; Tue, 26 Dec 2023 12:49:29 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=GKjWs4iLbBpgvdQo+xFJ5YANrhRaQ6o+bsM6g8egndI=; b=SaUeeQoV0qcR61Ew3jRt
 IlXrwCISKXPMviwBNutn87U/XuXsibNwNhGnrFPSox1wnehC8/4tLRYAU1RCwp2S0C0jbZBHE8kqn
 a+J0vXrDn/mpmG2MTqqU4QxX3Y/8G/CjdYQ0TQlUMTw5JxY+oCIqvgm4QVtfTnIn0hus0vmqRMKNY
 8NOKwgGCDQ+M0lNj4+nn7l2zJXpjOIJUQ+1edwLJerGJ924cE0fRZDEhlLGIdExl3wwuajxCBZQwb
 8b/7vlcfSbQc9GU49fZ+mTwcfRclx1nTfJFIL/K0WAxNaN448GA2ThT1vtWBg35+KoqJtKD7bKgzk
 k2S6+AGhq9jlbw==;
Date: Tue, 26 Dec 2023 19:49:09 +0200
Message-Id: <83zfxw97my.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
In-Reply-To: <ME3P282MB150507B0F2C5762C9BC5E78E9498A@HIDDEN>
 (message from Hanwen Guo on Tue, 26 Dec 2023 11:47:22 +0000)
References: <ME3P282MB150507B0F2C5762C9BC5E78E9498A@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

tags 68042 notabug
thanks

> From: Hanwen Guo <g.hanwen@HIDDEN>
> Date: Tue, 26 Dec 2023 11:47:22 +0000
> msip_labels: 
> 
> Providing the `:fontset' or `:font' face attribute in the `SPEC'
> argument of `face-remap-add-relative' with `FACE' argument being
> `'default' will make the `face-font' function return nil.
> 
> The following Emacs Lisp code can reproduce this behavior under 'emacs
> -Q'.
> 
> (create-fontset-from-fontset-spec
>  (font-xlfd-name
>   (font-spec :family "Source Serif"
>              :registry "fontset-variable pitch regular")))
> 
> (set-face-attribute 'variable-pitch nil
>                     :family "Source Serif"
>                     :fontset "fontset-variable pitch regular")
> 
> (let ((var-pitch (face-attribute 'variable-pitch :family))
>       (var-fontset (face-attribute 'variable-pitch :fontset)))
>   (setq mixed-pitch-variable-cookie
>         (face-remap-add-relative 'default :family var-pitch :fontset var-fontset)))
> 
> (face-font 'default) ;; nil
> 
> (face-remap-remove-relative mixed-pitch-variable-cookie)
> 
> (face-font 'default) ;; non-nil

Don't use :fontset as a face attribute; use :font instead.  The value
of :font can be a fontset, so you don't need to use the (obsolete and
not really supported) :fontset attribute.  The doc string of
set-face-attribute documents :font, not :fontset, and that is not an
accident.

If you replace all instances of :fontset above with :font, fac-font
will not return nil.

This is not a bug.




Message received at control <at> debbugs.gnu.org:


Received: (at control) by debbugs.gnu.org; 26 Dec 2023 17:49:35 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Dec 26 12:49:35 2023
Received: from localhost ([127.0.0.1]:34918 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rIBYd-0006hT-BH
	for submit <at> debbugs.gnu.org; Tue, 26 Dec 2023 12:49:35 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:42390)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>)
 id 1rIBYa-0006hA-SV; Tue, 26 Dec 2023 12:49:33 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1rIBYX-0007ys-A4; Tue, 26 Dec 2023 12:49:29 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=GKjWs4iLbBpgvdQo+xFJ5YANrhRaQ6o+bsM6g8egndI=; b=SaUeeQoV0qcR61Ew3jRt
 IlXrwCISKXPMviwBNutn87U/XuXsibNwNhGnrFPSox1wnehC8/4tLRYAU1RCwp2S0C0jbZBHE8kqn
 a+J0vXrDn/mpmG2MTqqU4QxX3Y/8G/CjdYQ0TQlUMTw5JxY+oCIqvgm4QVtfTnIn0hus0vmqRMKNY
 8NOKwgGCDQ+M0lNj4+nn7l2zJXpjOIJUQ+1edwLJerGJ924cE0fRZDEhlLGIdExl3wwuajxCBZQwb
 8b/7vlcfSbQc9GU49fZ+mTwcfRclx1nTfJFIL/K0WAxNaN448GA2ThT1vtWBg35+KoqJtKD7bKgzk
 k2S6+AGhq9jlbw==;
Date: Tue, 26 Dec 2023 19:49:09 +0200
Message-Id: <83zfxw97my.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Hanwen Guo <g.hanwen@HIDDEN>
In-Reply-To: <ME3P282MB150507B0F2C5762C9BC5E78E9498A@HIDDEN>
 (message from Hanwen Guo on Tue, 26 Dec 2023 11:47:22 +0000)
Subject: Re: bug#68042: 30.0.50;
 `face-font' returns nil after adding remap relative for fontset
References: <ME3P282MB150507B0F2C5762C9BC5E78E9498A@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: control
Cc: 68042 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

tags 68042 notabug
thanks

> From: Hanwen Guo <g.hanwen@HIDDEN>
> Date: Tue, 26 Dec 2023 11:47:22 +0000
> msip_labels: 
> 
> Providing the `:fontset' or `:font' face attribute in the `SPEC'
> argument of `face-remap-add-relative' with `FACE' argument being
> `'default' will make the `face-font' function return nil.
> 
> The following Emacs Lisp code can reproduce this behavior under 'emacs
> -Q'.
> 
> (create-fontset-from-fontset-spec
>  (font-xlfd-name
>   (font-spec :family "Source Serif"
>              :registry "fontset-variable pitch regular")))
> 
> (set-face-attribute 'variable-pitch nil
>                     :family "Source Serif"
>                     :fontset "fontset-variable pitch regular")
> 
> (let ((var-pitch (face-attribute 'variable-pitch :family))
>       (var-fontset (face-attribute 'variable-pitch :fontset)))
>   (setq mixed-pitch-variable-cookie
>         (face-remap-add-relative 'default :family var-pitch :fontset var-fontset)))
> 
> (face-font 'default) ;; nil
> 
> (face-remap-remove-relative mixed-pitch-variable-cookie)
> 
> (face-font 'default) ;; non-nil

Don't use :fontset as a face attribute; use :font instead.  The value
of :font can be a fontset, so you don't need to use the (obsolete and
not really supported) :fontset attribute.  The doc string of
set-face-attribute documents :font, not :fontset, and that is not an
accident.

If you replace all instances of :fontset above with :font, fac-font
will not return nil.

This is not a bug.




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#68042: 30.0.50; `face-font' returns nil after adding remap relative for fontset
Resent-From: Hanwen Guo <g.hanwen@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Wed, 27 Dec 2023 08:22:01 +0000
Resent-Message-ID: <handler.68042.B68042.170366531415120 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 68042
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: notabug
To: Eli Zaretskii <eliz@HIDDEN>
Cc: "68042 <at> debbugs.gnu.org" <68042 <at> debbugs.gnu.org>
Received: via spool by 68042-submit <at> debbugs.gnu.org id=B68042.170366531415120
          (code B ref 68042); Wed, 27 Dec 2023 08:22:01 +0000
Received: (at 68042) by debbugs.gnu.org; 27 Dec 2023 08:21:54 +0000
Received: from localhost ([127.0.0.1]:35329 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rIPAn-0003vj-74
	for submit <at> debbugs.gnu.org; Wed, 27 Dec 2023 03:21:54 -0500
Received: from mail-sy4aus01olkn2171.outbound.protection.outlook.com
 ([40.92.62.171]:31648 helo=AUS01-SY4-obe.outbound.protection.outlook.com)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <g.hanwen@HIDDEN>) id 1rINdx-0008NW-A4
 for 68042 <at> debbugs.gnu.org; Wed, 27 Dec 2023 01:43:54 -0500
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
 b=OWAIy2RVObGtu8aePpzpzHkqGgeRtvSkl87+jwOax+62cCB+Zp3p848qF5wmSGm1PQ+uMGl2kEA5iPSjmQSLR5wOXCdKeuvvYd8XB9LSclmHynyHEQNsFMov5Av2hLjd4IAe9W+YMM3mOC47UoXx7JMZsXVL7BsVPEGUS1PJgxFEt/27au80VIY5ST+TULz9nRTo1nLr4owC1L1m4YvWics/ET825XVPPAQ3Bhs9NAZgk/UNKH7hV7Yp0Vepa90uPNzm3ZnaLlkBqbsWUhjufUsof+CDbbeu+IjopciSl7AZFRq5vKHb+kcnyJUxTMGBBpaxQhl4nuALHoNRT7e2aQ==
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=puHEyEegrmDkInxWtCk+V3ESRrSwnfuUZj96Ola0evk=;
 b=NQFPXCuacLOVx8SMozpfPAhchCwb+m2bYecjH23ZhnnKW0zHh0tIK0CP3EYv9bnH6EKcHcONvoNyEBtKcI6YKXaVWnOPi26SzMDTB2h+D7w3rc2pyckWSJcCkTdYvXahzA8iJlvaprr/5oU3m17q7LOKUMkaWbpZRDjuJZ80sRQbp0KpGfsmUprZ5qkauaimHncrGU5+0Ri8FZvW504oA0KkEAfYxLG17DlweHCscDM1tsYUryJu6ZjbB03ksXvFF78fjT+KFbzIVVTMPruBH58ie1ecP1DwyJqD2VlWHIoEnSGw7fhO2sf2vr83qvPKHrkP/n4AMWWm2h9WeaHqIQ==
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=puHEyEegrmDkInxWtCk+V3ESRrSwnfuUZj96Ola0evk=;
 b=FrwgLXW0Gw7cP/VoESO4ATdVGe8ZQbK+Yw1t/miwB0N6D9X6V2inrpV+6ZIZPF9OLcAU3edEr34EJ8xGNUNJJYljbxkAXic/q5zvMDRfjLpjWNgVbUJysSAErNSwmOh3it/GhFl/o0BtjOPU0mqheVyjsLhlIrRAF4RaLQ4UqBqM13z2r6TS3lrllt+7LESlNlJylj5LWUtmNYCDgb9c5JdsTGTLIWS6FnIf9K4ylR/BLl3vxEONbDNPA8ePXH2Rj0y+pTexmtbWNkEGYdOEKM+ZUXABwuyoMLX/zQth1EKVN6/3gUf700FWRN4fKjNBEAZJy5s37KGfoJLYyhS/ag==
Received: from ME3P282MB1505.AUSP282.PROD.OUTLOOK.COM (2603:10c6:220:a6::9) by
 SY8P282MB4563.AUSP282.PROD.OUTLOOK.COM (2603:10c6:10:259::20) with
 Microsoft
 SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id
 15.20.7113.27; Wed, 27 Dec 2023 06:43:46 +0000
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; Wed, 27 Dec 2023
 06:43:46 +0000
From: Hanwen Guo <g.hanwen@HIDDEN>
Thread-Topic: bug#68042: 30.0.50; `face-font' returns nil after adding remap
 relative for fontset
Thread-Index: AQHaOCPi6iU0udPfyEmFkirJCe2oX7C8nVRD
Date: Wed, 27 Dec 2023 06:43:46 +0000
Message-ID: <ME3P282MB1505F51FA3B5FB8CC016F612949FA@HIDDEN>
References: <ME3P282MB150507B0F2C5762C9BC5E78E9498A@HIDDEN>
 <83zfxw97my.fsf@HIDDEN>
In-Reply-To: <83zfxw97my.fsf@HIDDEN>
Accept-Language: en-US, zh-CN
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
msip_labels: 
x-ms-exchange-messagesentrepresentingtype: 1
x-tmn: [Py+y/hBXnQIQn8Kvu3HXckF3tWKz5rmd]
x-ms-publictraffictype: Email
x-ms-traffictypediagnostic: ME3P282MB1505:EE_|SY8P282MB4563:EE_
x-ms-office365-filtering-correlation-id: 412e712d-1742-43cc-2832-08dc06a72ce7
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: GxSPUcaR8ch/0uJabylNV1aHj3LV8YRkLzwQberV5xv1133+apIphnR3B2GnvJOTD3iyqk9+CdFS9xMa1BWM9DPwdHGmTS1NnvenJaH5FlsNiQ8nH3rxd3pWdxIcquTifXncm4E762qvbXasrpKPE4IeFGJmRg+I1/fPTu/XM8AfUTl35VWb26SaBpeFo6wKnID0jnlQqd4N53XEw+MbmgSApVKBFD+5YiJiYHkXwB92chDhrsV42zHWMxqs9Zum+BVKmJmZUKejoJxbRxZUvFsnc4ds7OfVqt/5uifIesIVcAuTv5TCfTF+p7IQjW9RFbYIA5Ntio+St+7c6X1a7PrftkLeCFHS41UNLo6vbFjQQNCeiEOGtFAXq7x/+q5gEkT0KYUe82+FeigrP6ls7ah8iQ/To2XYG4Xf+dbk6UuaetFPpYtMf8MZe9FZl3JHTDRcXl+ZS6F1c5nO8GvQzx1AvHnDTx0dct+qe8eehA9InZ37sNP5oHNlAWk2NLO8cKS7ZVnSG4nfWKlyG60E0rMKcjtaIEnrulE68FdORdkNLm+KQasYMd/pcYZZe9qm
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: Rc+7+DXYtiAQnj7MXbOckYBSga3cLfFUWcAgULyBzQObMlgTci/I1JT+XbLYwAqhlCOcS/STH4LCDYchVI7qffHB0ezS94CiutvIQtK3L7Cs+HDsVNdZgrXITzz0LraTtjtMzUK/tQCiGxuUmDoZ9lvoUAt6eXn2GZPsDneAlSnE6EUO/wmpUBqaIIZqdIFeKsb8a8+D+mfgCdga4sfzhn0gZx/aRVVbqrq+M8nWfkqFJgR8YC+OyUD/9I2aXqLfUDQjg2xuz6Q9DQ4BtxTkwAZhTbP9/peVmdLUhEArQjcL/g8uhXFvldbhOa6vE9zQ1c4IcdNsHWLSUInlPeErP4LZVRea0/kcDmj0ZjF5cMxHWYGqcHiUwICd4yqjKhpSvi0Om4nLjWk26QQWhHqvvrQYIl4tRRnMAXowgOZ4QrcvUKGfP6R8j7KNNPXq14D6v2kOLIbAWAfcXxSlesRemWdr7wbAlRFvXIUNbi5+pOsfCW3Zxgx+w5eZdkKiczPnKhIWWMkn+ClJ9nwSvc736p5V+pnLAcXU2P24lE9c1jbB6rxCebvwqoecMTwaSTBC/bJpIhkUYOaFqLPyWH1en5wfW+ra5Fl/ElYl7eO5AoZEVH629ZYfLZRKCBDHE3omNp28r6+kLR5tK5ksyEif1ecPPWauZ1iqbd13bYg8C8jYPJOnQp5gsRnCbuL6IvVfU9mSpV+6kl+2K1syYKTLQsknHkFiOHeyRDoE5a2nsw2OdKpWTYfkhLBjHjt27cUG8VENnVzPLL+QsqYkSts9eoUEA7odRSFmTwtCzrVc6OelR+NxztIWjfmGUuXIinKlNXaI+F37QXnnqDQXv/aaZV4uqpirHRCBuY596Kk29MuvgnremPbVAAuYkhLjcR9HQMcSqbLNI14icIWjkdRSy17GqWisL1D3mUEDzEs5bYOf6BksvBHJsHbynYcMai2wp9pkii/AAnVxumWBbru2EgYCidHF4Q8O8pZDLABaB8oYn2AXQCNpREiK5pVRjqboqdPfTuTUWbhTaHx0tqOaQ3EbZDZ4nmlC8PQYRkiambk7ivw7kFZthvppDwBoaWjz8RHnz+oyB68AOrwKxyPa1bzcCZq9dtoifSCe6+koTTTxSK0sDP/k42v+vuMgkU2X4+ka976DyTIgBp+9Cg+/F5JUqJmqT3cdpYmHnArwmHoxDgmgchpdEh/7axP34r6fHuXoruKXQ5UkYDAaRKrPgQ==
Content-Type: multipart/alternative;
 boundary="_000_ME3P282MB1505F51FA3B5FB8CC016F612949FAME3P282MB1505AUSP_"
MIME-Version: 1.0
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: 412e712d-1742-43cc-2832-08dc06a72ce7
X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Dec 2023 06:43:46.1854 (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: SY8P282MB4563
X-Spam-Score: -0.0 (/)
X-Mailman-Approved-At: Wed, 27 Dec 2023 03:21:51 -0500
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--_000_ME3P282MB1505F51FA3B5FB8CC016F612949FAME3P282MB1505AUSP_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

> If you replace all instances of :fontset above with :font, fac-font
will not return nil.

Actually, if you pass the fontset through the `:font' attribute, only the A=
SCII font from the fontset is used. This applies to both `set-face-attribut=
e' and `face-remap-add-relative'. AFAIU, I think when it comes to the face =
attributes, the fontset feature is more like a way to set different font fo=
r diferent character sets, making it able to "display the whole range of ch=
aracters that Emacs supports" for a given face, since setting the `:family'=
 attribute or assigning a single font to `:font' would suffice for setting =
font only for ASCII characters. So the case is, either the `:font' attribut=
e needs to consider the full fontset, or the whole fontset feature is, as y=
ou said, "obsolete".

________________________________
From: Eli Zaretskii <eliz@HIDDEN>
Sent: Wednesday, December 27, 2023 1:49
To: Hanwen Guo <g.hanwen@HIDDEN>
Cc: 68042 <at> debbugs.gnu.org <68042 <at> debbugs.gnu.org>
Subject: Re: bug#68042: 30.0.50; `face-font' returns nil after adding remap=
 relative for fontset

tags 68042 notabug
thanks

> From: Hanwen Guo <g.hanwen@HIDDEN>
> Date: Tue, 26 Dec 2023 11:47:22 +0000
> msip_labels:
>
> Providing the `:fontset' or `:font' face attribute in the `SPEC'
> argument of `face-remap-add-relative' with `FACE' argument being
> `'default' will make the `face-font' function return nil.
>
> The following Emacs Lisp code can reproduce this behavior under 'emacs
> -Q'.
>
> (create-fontset-from-fontset-spec
>  (font-xlfd-name
>   (font-spec :family "Source Serif"
>              :registry "fontset-variable pitch regular")))
>
> (set-face-attribute 'variable-pitch nil
>                     :family "Source Serif"
>                     :fontset "fontset-variable pitch regular")
>
> (let ((var-pitch (face-attribute 'variable-pitch :family))
>       (var-fontset (face-attribute 'variable-pitch :fontset)))
>   (setq mixed-pitch-variable-cookie
>         (face-remap-add-relative 'default :family var-pitch :fontset var-=
fontset)))
>
> (face-font 'default) ;; nil
>
> (face-remap-remove-relative mixed-pitch-variable-cookie)
>
> (face-font 'default) ;; non-nil

Don't use :fontset as a face attribute; use :font instead.  The value
of :font can be a fontset, so you don't need to use the (obsolete and
not really supported) :fontset attribute.  The doc string of
set-face-attribute documents :font, not :fontset, and that is not an
accident.

If you replace all instances of :fontset above with :font, fac-font
will not return nil.

This is not a bug.

--_000_ME3P282MB1505F51FA3B5FB8CC016F612949FAME3P282MB1505AUSP_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-8859-=
1">
<style type=3D"text/css" style=3D"display:none;"> P {margin-top:0;margin-bo=
ttom:0;} </style>
</head>
<body dir=3D"ltr">
<div class=3D"elementToProof"><span style=3D"font-family: Aptos, Aptos_Embe=
ddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 1=
2pt; color: rgb(0, 0, 0);">&gt; If you replace all instances of :fontset ab=
ove with :font, fac-font</span></div>
<div class=3D"elementToProof"><span style=3D"font-family: Aptos, Aptos_Embe=
ddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 1=
2pt; color: rgb(0, 0, 0);">will not return nil.</span></div>
<div class=3D"elementToProof"><span style=3D"font-family: Aptos, Aptos_Embe=
ddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 1=
2pt; color: rgb(0, 0, 0);"><br>
</span></div>
<div class=3D"elementToProof"><span style=3D"font-family: Aptos, Aptos_Embe=
ddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 1=
2pt; color: rgb(0, 0, 0);">Actually, if you pass the fontset through the `:=
font' attribute, only the ASCII font
 from the fontset is used. This applies to both `set-face-attribute' and `f=
ace-remap-add-relative'. AFAIU, I think when it comes to the face attribute=
s, the fontset feature is more like a way to set different font for diferen=
t character sets, making it able
 to &quot;display the whole range of characters that Emacs supports&quot; f=
or a given face, since setting the `:family' attribute or assigning a singl=
e font to `:font' would suffice for setting font only for ASCII characters.=
 So the case is, either the `:font' attribute
 needs to consider the full fontset, or the whole fontset feature is, as yo=
u said, &quot;obsolete&quot;.&nbsp;</span></div>
<div id=3D"appendonsend"></div>
<div style=3D"font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, =
Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<hr style=3D"display: inline-block; width: 98%;">
<div id=3D"divRplyFwdMsg" dir=3D"ltr"><span style=3D"font-family: Calibri, =
sans-serif; font-size: 11pt; color: rgb(0, 0, 0);"><b>From:</b>&nbsp;Eli Za=
retskii &lt;eliz@HIDDEN&gt;<br>
<b>Sent:</b>&nbsp;Wednesday, December 27, 2023 1:49<br>
<b>To:</b>&nbsp;Hanwen Guo &lt;g.hanwen@HIDDEN&gt;<br>
<b>Cc:</b>&nbsp;68042 <at> debbugs.gnu.org &lt;68042 <at> debbugs.gnu.org&gt;<br>
<b>Subject:</b>&nbsp;Re: bug#68042: 30.0.50; `face-font' returns nil after =
adding remap relative for fontset</span>
<div>&nbsp;</div>
</div>
<div class=3D"elementToProof"><span style=3D"font-family: Aptos, Aptos_Embe=
ddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 1=
1pt; color: rgb(0, 0, 0);">tags 68042 notabug<br>
thanks<br>
<br>
&gt; From: Hanwen Guo &lt;g.hanwen@HIDDEN&gt;<br>
&gt; Date: Tue, 26 Dec 2023 11:47:22 +0000<br>
&gt; msip_labels:<br>
&gt;<br>
&gt; Providing the `:fontset' or `:font' face attribute in the `SPEC'<br>
&gt; argument of `face-remap-add-relative' with `FACE' argument being<br>
&gt; `'default' will make the `face-font' function return nil.<br>
&gt;<br>
&gt; The following Emacs Lisp code can reproduce this behavior under 'emacs=
<br>
&gt; -Q'.<br>
&gt;<br>
&gt; (create-fontset-from-fontset-spec<br>
&gt; &nbsp;(font-xlfd-name<br>
&gt; &nbsp; (font-spec :family &quot;Source Serif&quot;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:registry &quot;fontse=
t-variable pitch regular&quot;)))<br>
&gt;<br>
&gt; (set-face-attribute 'variable-pitch nil<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
:family &quot;Source Serif&quot;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
:fontset &quot;fontset-variable pitch regular&quot;)<br>
&gt;<br>
&gt; (let ((var-pitch (face-attribute 'variable-pitch :family))<br>
&gt; &nbsp; &nbsp; &nbsp; (var-fontset (face-attribute 'variable-pitch :fon=
tset)))<br>
&gt; &nbsp; (setq mixed-pitch-variable-cookie<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; (face-remap-add-relative 'default :family =
var-pitch :fontset var-fontset)))<br>
&gt;<br>
&gt; (face-font 'default) ;; nil<br>
&gt;<br>
&gt; (face-remap-remove-relative mixed-pitch-variable-cookie)<br>
&gt;<br>
&gt; (face-font 'default) ;; non-nil<br>
<br>
Don't use :fontset as a face attribute; use :font instead.&nbsp; The value<=
br>
of :font can be a fontset, so you don't need to use the (obsolete and<br>
not really supported) :fontset attribute.&nbsp; The doc string of<br>
set-face-attribute documents :font, not :fontset, and that is not an<br>
accident.<br>
<br>
If you replace all instances of :fontset above with :font, fac-font<br>
will not return nil.<br>
<br>
This is not a bug.</span></div>
</body>
</html>

--_000_ME3P282MB1505F51FA3B5FB8CC016F612949FAME3P282MB1505AUSP_--




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#68042: 30.0.50; `face-font' returns nil after adding remap relative for fontset
Resent-From: Eli Zaretskii <eliz@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Wed, 27 Dec 2023 13:31:02 +0000
Resent-Message-ID: <handler.68042.B68042.170368385429038 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 68042
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: notabug
To: Hanwen Guo <g.hanwen@HIDDEN>
Cc: 68042 <at> debbugs.gnu.org
Received: via spool by 68042-submit <at> debbugs.gnu.org id=B68042.170368385429038
          (code B ref 68042); Wed, 27 Dec 2023 13:31:02 +0000
Received: (at 68042) by debbugs.gnu.org; 27 Dec 2023 13:30:54 +0000
Received: from localhost ([127.0.0.1]:35518 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rITzp-0007XM-IG
	for submit <at> debbugs.gnu.org; Wed, 27 Dec 2023 08:30:54 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:57266)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1rITzn-0007Kf-76
 for 68042 <at> debbugs.gnu.org; Wed, 27 Dec 2023 08:30:51 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1rITzd-0007lp-Su; Wed, 27 Dec 2023 08:30:44 -0500
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=1tJcIs+gQnLHsoZExnwch0Bwm79yXJLkqxseQX4OEVw=; b=L2/ZOA4OlpOl
 XgYmgvCz5BG2CusAnMrsDbbeWaYhSElCCP1VEpyCLnX2OdeFn2oJxOnyGWhgh2dQ2AZeV0njB7v98
 ieaErVUEYYoMhr+ijwrKH3ZordDSGATOWHypp44nueS2sMfsy5vHXmd5+aItS2HAnV1bjN/00KZnc
 ANduzW2ghgFL/KziLyrGsS8owD5UCziOpHDCZjUCV7qOSuQH1MJ9s5hnaTqfq1+h8kLBfCY3DEPts
 LVaqbn4hZKiM4khDWNnhqObSsrwQfOlxWHapNJCypyYNU0G9E5IcCO3Op6HQt9hININDNfmbLpqyZ
 IoCFqtmB0ztPbTEg/goVSw==;
Date: Wed, 27 Dec 2023 15:30:24 +0200
Message-Id: <83plyr93in.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
In-Reply-To: <ME3P282MB1505F51FA3B5FB8CC016F612949FA@HIDDEN>
 (message from Hanwen Guo on Wed, 27 Dec 2023 06:43:46 +0000)
References: <ME3P282MB150507B0F2C5762C9BC5E78E9498A@HIDDEN>
 <83zfxw97my.fsf@HIDDEN> 
 <ME3P282MB1505F51FA3B5FB8CC016F612949FA@HIDDEN>
X-Spam-Score: -2.3 (--)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Hanwen Guo <g.hanwen@HIDDEN>
> CC: "68042 <at> debbugs.gnu.org" <68042 <at> debbugs.gnu.org>
> Date: Wed, 27 Dec 2023 06:43:46 +0000
> 
> > If you replace all instances of :fontset above with :font, face-font
> will not return nil.
> 
> Actually, if you pass the fontset through the `:font' attribute, only the ASCII font from the fontset is
> used.

Yes, because the faces that are exposed to Lisp are always the faces
used for characters supported by the "ASCII font" of a face.  For
other characters, Emacs creates internally a separate face, which is
not exposed to Lisp, and determines its font from the fontset in
effect, merging the other relevant face attributes to produce a face
as similar as possible to the one used for characters covered by the
"ASCII font".

> This applies to both `set-face-attribute' and `face-remap-add-relative'. AFAIU, I think when it
> comes to the face attributes, the fontset feature is more like a way to set different font for diferent
> character sets, making it able to "display the whole range of characters that Emacs supports" for a
> given face, since setting the `:family' attribute or assigning a single font to `:font' would suffice for
> setting font only for ASCII characters. So the case is, either the `:font' attribute needs to consider the
> full fontset, or the whole fontset feature is, as you said, "obsolete". 

Then please explain in more detail what you are trying to achieve, and
why.  The code snippet you presented makes it hard to guess, since it
defines a face with a special fontset, and then remaps the 'default'
face to that face.  Why would you need to do that, instead of simply
customizing the default-fontset or setting the :fontset attribute of
the 'default' face?

The technical reason for what you see is that face-remapping creates
an anonymous face with the specified attributes, and Emacs doesn't
support the :fontset attribute for anonymous faces.  But since I don't
really understand why you use face-remap-add-relative, I cannot tell
whether this is a problem or how to solve it for your needs.




Message received at control <at> debbugs.gnu.org:


Received: (at control) by debbugs.gnu.org; 10 Jan 2024 11:04:11 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jan 10 06:04:11 2024
Received: from localhost ([127.0.0.1]:42134 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rNWNT-0007zj-Qi
	for submit <at> debbugs.gnu.org; Wed, 10 Jan 2024 06:04:11 -0500
Received: from mail-ed1-x52a.google.com ([2a00:1450:4864:20::52a]:61751)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <stefankangas@HIDDEN>) id 1rNWNS-0007yb-2S
 for control <at> debbugs.gnu.org; Wed, 10 Jan 2024 06:04:06 -0500
Received: by mail-ed1-x52a.google.com with SMTP id
 4fb4d7f45d1cf-55818b733f7so1716690a12.3
 for <control <at> debbugs.gnu.org>; Wed, 10 Jan 2024 03:03:58 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1704884633; x=1705489433; darn=debbugs.gnu.org;
 h=to:subject:message-id:date:mime-version:from:from:to:cc:subject
 :date:message-id:reply-to;
 bh=KkER8Xge9wo9mqer0cbx4WbzbfQRrADIugQiHgxY1s8=;
 b=f1JTL+LiJVBmCWHr2Pl2TR6YVBjEP5KAntgKWOJySlxZ0lvRA7/OHf0rDamMTu359A
 VOZMZy5iPzqXjFK55jTEW8ODZRi9ExX+5LC/iGxrVUZDoWohhItSEBkj6iOhBf/Qi2yH
 pFFyL4h998womHSynXtbybjQLKyb7NBXXsH2zcDp6m3Jdlx3HmZTHI+M/q004ppKdQ02
 pQxjzmNeez4PiHiTZNApRZ6BD3gd7y79xBHVvFYvifuVEl3OMeBRo/X53H94Kze8tAuf
 mg+5DMbZ5gX1zdTn0NXHUm2+X7cWF9112q88OFOvaGQ9b9TjCgJWRvWSpkeFrc9T0kEA
 tQzw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1704884633; x=1705489433;
 h=to:subject:message-id:date:mime-version:from:x-gm-message-state
 :from:to:cc:subject:date:message-id:reply-to;
 bh=KkER8Xge9wo9mqer0cbx4WbzbfQRrADIugQiHgxY1s8=;
 b=Trg2MILbi6VJNfw213Re+/QYwnX3BLfMDKOyPnXTfZVBw/5mCrl9oQztdZQQqfsZj7
 75ZbJU9NnkOZMYC3CmanDGFHNnBpQ/Bf9vFOlRXbQvS20ZbH8Yqc4KU1i383m6qA3ZkY
 KPXUNnY988aQGuC3nKA5xkIWY7VZ/LQQCCO5vkETwZGmdeALYo2ovKLXXJZV4tQ1FMwP
 Y0eakZf4q84OKyTv/ipGlMWip6ojetguQ4nPUpjmAZjgx99Mja3YxVjtJeYaZopu2cE8
 9ZGmpeEeoGvOJhT2jQ7v+KD1ZbHNFE+9h+Of60gSQ9czgKv9JuOec4GlfotKqn4yDfWf
 d9iQ==
X-Gm-Message-State: AOJu0YxeahPVwhVE8SpqJbii8jRUm6L3spS67g1AAAgFzyzYngp3fo/S
 IzzHXRRmlrw4Zpxne72q7pK4q/n872ULSg2GBlBPllHp5Wc=
X-Google-Smtp-Source: AGHT+IHwL8hU+wAQGWHW/i+ILOkijojW4xhURMbCgYePlwEeNmJuebX33Zd2uWWvFntvDyg4azNs1GBmr7pR0+Clht8=
X-Received: by 2002:a50:d701:0:b0:555:3598:927a with SMTP id
 t1-20020a50d701000000b005553598927amr350261edi.69.1704884632848; Wed, 10 Jan
 2024 03:03:52 -0800 (PST)
Received: from 753933720722 named unknown by gmailapi.google.com with
 HTTPREST; Wed, 10 Jan 2024 03:03:52 -0800
From: Stefan Kangas <stefankangas@HIDDEN>
MIME-Version: 1.0
Date: Wed, 10 Jan 2024 03:03:52 -0800
Message-ID: <CADwFkm=3exqKUTSX=wNKD8zVnA2e4c08ANG5-K-7KHdT8T2nWQ@HIDDEN>
Subject: control message for bug #68042
To: control <at> debbugs.gnu.org
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: control
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

tags 68042 + moreinfo
quit





Last modified: Sat, 20 Jan 2024 12:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.