GNU bug report logs - #67987
Replacing faces applied by shr

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: wishlist; Reported by: Po Lu <luangruo@HIDDEN>; dated Sat, 23 Dec 2023 07:18:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Severity set to 'wishlist' from 'normal' Request was from Stefan Kangas <stefankangas@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

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


Received: (at submit) by debbugs.gnu.org; 23 Dec 2023 07:17:02 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Dec 23 02:17:02 2023
Received: from localhost ([127.0.0.1]:48421 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rGwFn-0000pD-Rs
	for submit <at> debbugs.gnu.org; Sat, 23 Dec 2023 02:17:02 -0500
Received: from lists.gnu.org ([2001:470:142::17]:46110)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <luangruo@HIDDEN>) id 1rGwFX-0000ok-C1
 for submit <at> debbugs.gnu.org; Sat, 23 Dec 2023 02:16:58 -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 <luangruo@HIDDEN>)
 id 1rGwFM-0003AP-5B
 for bug-gnu-emacs@HIDDEN; Sat, 23 Dec 2023 02:16:32 -0500
Received: from sonic303-20.consmr.mail.ne1.yahoo.com ([66.163.188.146])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <luangruo@HIDDEN>)
 id 1rGwFJ-0001Rz-K6
 for bug-gnu-emacs@HIDDEN; Sat, 23 Dec 2023 02:16:31 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1703315787; bh=jgnmKWT98BNjbdIcCFMNgJ/CXsLIdpRZ+L3VBq9Rx6o=;
 h=From:To:Subject:Date:References:From:Subject:Reply-To;
 b=rvWhxqsQQeIwChqVLD4Xw2t1D8qhxU+0a7zWliNgplhELB5VdmKTKuWyAvhZjrEru8edH+ifTZi5GLKAHAJH0wgAld+nDi6rt9xHWzB9NX2HwjsmgN0H9rDnHl0nZoEIvQ8Iz66SrZwztezl3JTL+NrDabaR0iLz/kPVZ0pDxJZJXSbF1ubgCLs8C37Kyf0q+pQFNf91NVMa4vpKOeppbsSguemPZcK4+q2ouVo1YHbN5+iX8atgcvxJDhabsTaZW4VXzycHjXnjhzFYrZbbFfGB9qBfcfB8VEqA7ftxfq2F6hGJjoJ6U9JX0a315aFpmMzJ45tp8OA6Fp2gyUQZJw==
X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1703315787; bh=gAtUrvGA2Id/t6nNgImf9EBMeGtVn68vfy5P5lnmJzr=;
 h=X-Sonic-MF:From:To:Subject:Date:From:Subject;
 b=uQsNyqL//le3q8SQmGLmKf+L9TYhK1szY9IdX4py7p0f8qZqHF4MqfgmDDHwDnkHblhV8+0ZpvV/+oGzt+0SuSzUr0zB5v4oooGf6BryBpbBaSm3kwzrlBLXvbE8ORCCYScL6VHL92U/YVhvhD9DB9XwM4nuc3z7bSlyknfaJubQ/hU2qHODefdLZKSLwQTjlZ9+khAMPccLsMz+OKBggRMt5uo4OMpkskGjcTT3w4oWe0Dk1Vv5vNQgdfauS6Xb11K9SJLaZl237wYWioMYlLxaR1q6TwcoBganCEKMh8a5EKepzpvvwfAuO0fFE7Ux+gKmLUgb4OrABMCSlw/GnQ==
X-YMail-OSG: mwH_3NQVM1k.ClP_CixILMhqi6zwXCVH4WUTAiLHX.iihB7Dl3.bwRO68s.Co0Q
 C3IDC8jaKwjS7apYNFH5cqYROCj0NC7l6d_BuJ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cP6Juf2oSjXx
 07ncLFZcoX5Xq2cBJ_j.M3L7lCLfZ53UHK.F5tuHX6yACKOzoikZGl8fySoP2JO8bZVg4Z1PgtBV
 yNui4ZbW31S61J_n1eWPDVpjfNSxELXizwzOaN307Q7js7sY-
X-Sonic-MF: <luangruo@HIDDEN>
X-Sonic-ID: d7e0bcb7-96b5-471e-8e5a-9c1af544deb0
Received: from sonic.gate.mail.ne1.yahoo.com by
 sonic303.consmr.mail.ne1.yahoo.com with HTTP; Sat, 23 Dec 2023 07:16:27 +0000
Received: by hermes--production-sg3-65d57d948b-kv4ch (Yahoo Inc. Hermes SMTP
 Server) with ESMTPA ID 23858f9bc2b394fa087503eb8addd9f2; 
 Sat, 23 Dec 2023 07:16:20 +0000 (UTC)
From: Po Lu <luangruo@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: Replacing faces applied by shr
Date: Sat, 23 Dec 2023 15:16:13 +0800
Message-ID: <87sf3twfr6.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
References: <87sf3twfr6.fsf.ref@HIDDEN>
X-Mailer: WebService/1.1.21952
 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo
Content-Length: 986
Received-SPF: pass client-ip=66.163.188.146; envelope-from=luangruo@HIDDEN;
 helo=sonic303-20.consmr.mail.ne1.yahoo.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, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.7 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview:  It is currently impossible to display text inside <pre> or
 <code> tags in a face besides `default' or `shr-code', which runs contrary
 to its stated purpose of being a general mechanism for displaying [...] 
 Content analysis details:   (1.7 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -0.0 SPF_HELO_PASS          SPF: HELO matches SPF record
 0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail
 provider (luangruo[at]yahoo.com)
 1.0 FORGED_YAHOO_RCVD      'From' yahoo.com does not match 'Received'
 headers
 0.7 SPF_NEUTRAL            SPF: sender does not match SPF record (neutral)
 -0.0 T_SCC_BODY_TEXT_LINE   No description available.
X-Debbugs-Envelope-To: submit
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.7 (/)

It is currently impossible to display text inside <pre> or <code> tags
in a face besides `default' or `shr-code', which runs contrary to its
stated purpose of being a general mechanism for displaying HTML snippets
as text.  The variable that controls the faces selected for other tags
is also marked "private."  For this reason, I find myself modifying
face-remapping-alist rather than variables provided by shr, just to
change the fonts shr applies in my own callers.

Not even face-remapping-alist is a complete solution, since different
alists cannot be applied to separate portions of a buffer.  Thus users
are ultimately forced to iterate over the text properties shr inserts
and modifying each face property encountered, or to define an
`shr-external-rendering-function' for each tag it might render.

For a start, I'd like to see `shr-current-font' made public and
variables defined for each of the tags that override it controlling the
faces by which it is overridden.

Thanks.




Acknowledgement sent to Po Lu <luangruo@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#67987; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
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.