From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#19752: 25.0.50; fonts in HTML Date: Sun, 29 Sep 2019 10:56:12 +0200 Message-ID: <877e5rqy4z.fsf@gnus.org> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="231443"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 19752@debbugs.gnu.org To: Richard Stallman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Sep 29 10:58:27 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iEV2A-000y6T-Sv for geb-bug-gnu-emacs@m.gmane.org; Sun, 29 Sep 2019 10:58:27 +0200 Original-Received: from localhost ([::1]:37452 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iEV29-0005VD-86 for geb-bug-gnu-emacs@m.gmane.org; Sun, 29 Sep 2019 04:58:25 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60467) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iEV1y-0005UY-RZ for bug-gnu-emacs@gnu.org; Sun, 29 Sep 2019 04:58:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iEV1w-0007KQ-9j for bug-gnu-emacs@gnu.org; Sun, 29 Sep 2019 04:58:14 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43399) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iEV0o-0005Sg-3R for bug-gnu-emacs@gnu.org; Sun, 29 Sep 2019 04:58:11 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iEV0n-0004AC-VQ for bug-gnu-emacs@gnu.org; Sun, 29 Sep 2019 04:57:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 29 Sep 2019 08:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19752 X-GNU-PR-Package: emacs Original-Received: via spool by 19752-submit@debbugs.gnu.org id=B19752.156974737815948 (code B ref 19752); Sun, 29 Sep 2019 08:57:01 +0000 Original-Received: (at 19752) by debbugs.gnu.org; 29 Sep 2019 08:56:18 +0000 Original-Received: from localhost ([127.0.0.1]:52220 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iEV06-000499-6E for submit@debbugs.gnu.org; Sun, 29 Sep 2019 04:56:18 -0400 Original-Received: from quimby.gnus.org ([80.91.231.51]:49148) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iEV04-000490-Qh for 19752@debbugs.gnu.org; Sun, 29 Sep 2019 04:56:17 -0400 Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iEV00-0006kI-Gv; Sun, 29 Sep 2019 10:56:15 +0200 In-Reply-To: (Richard Stallman's message of "Mon, 02 Feb 2015 20:10:15 -0500") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:167629 Archived-At: Richard Stallman writes: > I received message in Rmail which had this: > > > > and a lot of the text was unreadable on the tty. This seems to happen > with a lot of messages (even some that are not spam). > > Setting shr-inhibit-decoration to t made it possible to read the text. Looking at this a bit more, I'm going to guess that the problem is that on consoles, Emacs doesn't have enough colours to display this stuff sensibly. What does (display-color-cells) return for you? If this is the case, we could fix this issue with something like the patch below. diff --git a/lisp/net/shr.el b/lisp/net/shr.el index 0cd15dcfe0..d4c99219bc 100644 --- a/lisp/net/shr.el +++ b/lisp/net/shr.el @@ -72,9 +72,9 @@ shr-discard-aria-hidden :version "27.1" :type 'boolean) -(defcustom shr-use-colors t +(defcustom shr-use-colors (> (display-color-cells) 256) "If non-nil, respect color specifications in the HTML." - :version "26.1" + :version "27.1" :type 'boolean) (defcustom shr-table-horizontal-line nil -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no