Stefan Kangas <stefankangas@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Received: (at 68042) by debbugs.gnu.org; 27 Dec 2023 13:30:54 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Dec 27 08:30:54 2023 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> To: Hanwen Guo <g.hanwen@HIDDEN> In-Reply-To: <ME3P282MB1505F51FA3B5FB8CC016F612949FA@HIDDEN> (message from Hanwen Guo on Wed, 27 Dec 2023 06:43:46 +0000) Subject: Re: bug#68042: 30.0.50; `face-font' returns nil after adding remap relative for fontset References: <ME3P282MB150507B0F2C5762C9BC5E78E9498A@HIDDEN> <83zfxw97my.fsf@HIDDEN> <ME3P282MB1505F51FA3B5FB8CC016F612949FA@HIDDEN> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 68042 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 (---) > 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.
bug-gnu-emacs@HIDDEN
:bug#68042
; Package emacs
.
Full text available.Received: (at 68042) by debbugs.gnu.org; 27 Dec 2023 08:21:54 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Dec 27 03:21:54 2023 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> To: Eli Zaretskii <eliz@HIDDEN> Subject: Re: bug#68042: 30.0.50; `face-font' returns nil after adding remap relative for fontset 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: =?iso-8859-1?Q?Rc+7+DXYtiAQnj7MXbOckYBSga3cLfFUWcAgULyBzQObMlgTci/I1JT+Xb?= =?iso-8859-1?Q?LYwAqhlCOcS/STH4LCDYchVI7qffHB0ezS94CiutvIQtK3L7Cs+HDsVNdZ?= =?iso-8859-1?Q?grXITzz0LraTtjtMzUK/tQCiGxuUmDoZ9lvoUAt6eXn2GZPsDneAlSnE6E?= =?iso-8859-1?Q?UO/wmpUBqaIIZqdIFeKsb8a8+D+mfgCdga4sfzhn0gZx/aRVVbqrq+M8nW?= =?iso-8859-1?Q?fkqFJgR8YC+OyUD/9I2aXqLfUDQjg2xuz6Q9DQ4BtxTkwAZhTbP9/peVmd?= =?iso-8859-1?Q?LUhEArQjcL/g8uhXFvldbhOa6vE9zQ1c4IcdNsHWLSUInlPeErP4LZVRea?= =?iso-8859-1?Q?0/kcDmj0ZjF5cMxHWYGqcHiUwICd4yqjKhpSvi0Om4nLjWk26QQWhHqvvr?= =?iso-8859-1?Q?QYIl4tRRnMAXowgOZ4QrcvUKGfP6R8j7KNNPXq14D6v2kOLIbAWAfcXxSl?= =?iso-8859-1?Q?esRemWdr7wbAlRFvXIUNbi5+pOsfCW3Zxgx+w5eZdkKiczPnKhIWWMkn+C?= =?iso-8859-1?Q?lJ9nwSvc736p5V+pnLAcXU2P24lE9c1jbB6rxCebvwqoecMTwaSTBC/bJp?= =?iso-8859-1?Q?IhkUYOaFqLPyWH1en5wfW+ra5Fl/ElYl7eO5AoZEVH629ZYfLZRKCBDHE3?= =?iso-8859-1?Q?omNp28r6+kLR5tK5ksyEif1ecPPWauZ1iqbd13bYg8C8jYPJOnQp5gsRnC?= =?iso-8859-1?Q?buL6IvVfU9mSpV+6kl+2K1syYKTLQsknHkFiOHeyRDoE5a2nsw2OdKpWTY?= =?iso-8859-1?Q?fkhLBjHjt27cUG8VENnVzPLL+QsqYkSts9eoUEA7odRSFmTwtCzrVc6Oel?= =?iso-8859-1?Q?R+NxztIWjfmGUuXIinKlNXaI+F37QXnnqDQXv/aaZV4uqpirHRCBuY596K?= =?iso-8859-1?Q?k29MuvgnremPbVAAuYkhLjcR9HQMcSqbLNI14icIWjkdRSy17GqWisL1D3?= =?iso-8859-1?Q?mUEDzEs5bYOf6BksvBHJsHbynYcMai2wp9pkii/AAnVxumWBbru2EgYCid?= =?iso-8859-1?Q?HF4Q8O8pZDLABaB8oYn2AXQCNpREiK5pVRjqboqdPfTuTUWbhTaHx0tqOa?= =?iso-8859-1?Q?Q3EbZDZ4nmlC8PQYRkiambk7ivw7kFZthvppDwBoaWjz8RHnz+oyB68AOr?= =?iso-8859-1?Q?wKxyPa1bzcCZq9dtoifSCe6+koTTTxSK0sDP/k42v+vuMgkU2X4+ka976D?= =?iso-8859-1?Q?yTIgBp+9Cg+/F5JUqJmqT3cdpYmHnArwmHoxDgmgchpdEh/7axP34r6fHu?= =?iso-8859-1?Q?XoruKXQ5UkYDAaRKrPgQ=3D=3D?= 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-Debbugs-Envelope-To: 68042 X-Mailman-Approved-At: Wed, 27 Dec 2023 03:21:51 -0500 Cc: "68042 <at> debbugs.gnu.org" <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: -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);">> 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 "display the whole range of characters that Emacs supports" 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, "obsolete". </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> Eli Za= retskii <eliz@HIDDEN><br> <b>Sent:</b> Wednesday, December 27, 2023 1:49<br> <b>To:</b> Hanwen Guo <g.hanwen@HIDDEN><br> <b>Cc:</b> 68042 <at> debbugs.gnu.org <68042 <at> debbugs.gnu.org><br> <b>Subject:</b> Re: bug#68042: 30.0.50; `face-font' returns nil after = adding remap relative for fontset</span> <div> </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> > From: Hanwen Guo <g.hanwen@HIDDEN><br> > Date: Tue, 26 Dec 2023 11:47:22 +0000<br> > msip_labels:<br> ><br> > Providing the `:fontset' or `:font' face attribute in the `SPEC'<br> > argument of `face-remap-add-relative' with `FACE' argument being<br> > `'default' will make the `face-font' function return nil.<br> ><br> > The following Emacs Lisp code can reproduce this behavior under 'emacs= <br> > -Q'.<br> ><br> > (create-fontset-from-fontset-spec<br> > (font-xlfd-name<br> > (font-spec :family "Source Serif"<br> > :registry "fontse= t-variable pitch regular")))<br> ><br> > (set-face-attribute 'variable-pitch nil<br> > = :family "Source Serif"<br> > = :fontset "fontset-variable pitch regular")<br> ><br> > (let ((var-pitch (face-attribute 'variable-pitch :family))<br> > (var-fontset (face-attribute 'variable-pitch :fon= tset)))<br> > (setq mixed-pitch-variable-cookie<br> > (face-remap-add-relative 'default :family = var-pitch :fontset var-fontset)))<br> ><br> > (face-font 'default) ;; nil<br> ><br> > (face-remap-remove-relative mixed-pitch-variable-cookie)<br> ><br> > (face-font 'default) ;; non-nil<br> <br> Don't use :fontset as a face attribute; use :font instead. 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. 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_--
bug-gnu-emacs@HIDDEN
:bug#68042
; Package emacs
.
Full text available.Eli Zaretskii <eliz@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Received: (at 68042) 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]: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> 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: 68042 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.
bug-gnu-emacs@HIDDEN
:bug#68042
; Package emacs
.
Full text available.Received: (at submit) by debbugs.gnu.org; 26 Dec 2023 16:56:02 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Tue Dec 26 11:56:02 2023 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> To: "bug-gnu-emacs@HIDDEN" <bug-gnu-emacs@HIDDEN> Subject: 30.0.50; `face-font' returns nil after adding remap relative for fontset 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: =?iso-8859-1?Q?SkcdqFOl7iczHdIJr6DE1IOMVwShuvOiAQ4cyShhO++sjAGcQ10YLR9Gxz?= =?iso-8859-1?Q?cc+JWSIh9/a9Q1l18vwzG0pNKNvPVuH6m2KegSkhsCAzd1Wv8m7Vwb9NeB?= =?iso-8859-1?Q?Xusee5KKkRVKEK6CEsQNuApBNonmuD+x2jY4DKAz5uUOl++zVLZtwowoht?= =?iso-8859-1?Q?pHEVzbM5RbLDNEEgOMjEsl7B9wE2i7h0PqijMEUdk50Kst19gMFy88GAzR?= =?iso-8859-1?Q?BIz1mbksSP6HVXvzLtUsu8JbRlZxXHw1ZsbyIMUaOuZ7LWMe6nVp48YXI5?= =?iso-8859-1?Q?+p8V7peK/zI1R14T+MTsQiWdeSL+BFZdr0feYsuuk76Z9fxiVib7xStn50?= =?iso-8859-1?Q?BNThKv7vcEeZFZJatbWceeg0S74zsNjqIYLQNcywiwQ7MQczkvXTi7yXRU?= =?iso-8859-1?Q?0avl/rlBsxLBw3zJHity6uSypaNMiy85vB2mbtInEsMH2bFRlZriGthQZL?= =?iso-8859-1?Q?tIP8gSvITMJJcCv0sxEzClqrUdHlfOq01blrEpnBeyngsm8yXE68Ja7aOc?= =?iso-8859-1?Q?9U/WSc96Eca4S9AYds+CD5wzD88tJEEodcdMBW3IAIpXghxJfgim9Q+LgZ?= =?iso-8859-1?Q?YxmH41+ILO3Gelg2t6FBaXapIP1icDn6WgbaLbElhbkDs0E+a8bdviBNtd?= =?iso-8859-1?Q?PHAT5+kP3rMBidJiP78OwZBnh3U6I+ZKMbTKy5HvEDDeQCx3SqU8ljNbVz?= =?iso-8859-1?Q?2Jj81Dao7g9nii3hU1EgtCekK3A4pCtGpblkd/DeoMG0qTQ/7Cxi4qPN4B?= =?iso-8859-1?Q?yiKJWtCwzR8SWimSoGGPCiZmuKpyNg2AF/ezTI3Zcoa5t+CeiKDGWe2AP+?= =?iso-8859-1?Q?wG2No9sMznXM04zaIeV1Uaz9luf1fSS2WSxUNsOe7C1MJfynRxsVjxj9aY?= =?iso-8859-1?Q?E8dYzNCbFj9UTuve0DuFJ3SRnuYB4LD+Uz26mvqQDalsDseYCzLKEJmAnS?= =?iso-8859-1?Q?ljMzHfSoGKoYjllS0QhcEYfPOF4QC6A4BpR/pEdlp2lr/fjgjNnezF+hOf?= =?iso-8859-1?Q?gEvNam4Bk1BFrN+pCKKUn6/XdUoSCB820FxQG0oEnj8VMd+4MU33yNaHmA?= =?iso-8859-1?Q?TrY8r3cSvXwNivzbYthiqN79jxeOJ8x7RU6HVqP9g3C0sVhx8ah8rP+vxo?= =?iso-8859-1?Q?EzAB/gui2D0EwDmrFxxF+zDzK/gXYY/1DYSJ6vH2lONG2hIB7nMUZsKn00?= =?iso-8859-1?Q?Eatyua6etHxIWoMVKK3yhvhmPIWqPOsIain3b0Y/nj8ykeJHfLmqj+R1Zw?= =?iso-8859-1?Q?XO6HRgJYydXiai027PJw=3D=3D?= 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-Debbugs-Envelope-To: submit 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=
Hanwen Guo <g.hanwen@HIDDEN>
:bug-gnu-emacs@HIDDEN
.
Full text available.bug-gnu-emacs@HIDDEN
:bug#68042
; Package emacs
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.