From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#19752: 25.0.50; fonts in HTML Date: Sat, 02 Nov 2019 00:40:12 +0100 Message-ID: <87mudfupwj.fsf@marxist.se> References: <877e5rqy4z.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="147535"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: Richard Stallman , 19752@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Nov 02 00:41:23 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 1iQgXj-000cHX-HN for geb-bug-gnu-emacs@m.gmane.org; Sat, 02 Nov 2019 00:41:23 +0100 Original-Received: from localhost ([::1]:43952 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iQgXh-0001gj-Ls for geb-bug-gnu-emacs@m.gmane.org; Fri, 01 Nov 2019 19:41:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34732) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iQgXR-0001gT-QR for bug-gnu-emacs@gnu.org; Fri, 01 Nov 2019 19:41:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iQgXP-0001x5-GW for bug-gnu-emacs@gnu.org; Fri, 01 Nov 2019 19:41:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48746) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iQgXO-0001wN-Ji for bug-gnu-emacs@gnu.org; Fri, 01 Nov 2019 19:41:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iQgXO-0002YB-Ee for bug-gnu-emacs@gnu.org; Fri, 01 Nov 2019 19:41:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 01 Nov 2019 23:41:02 +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.15726516229727 (code B ref 19752); Fri, 01 Nov 2019 23:41:02 +0000 Original-Received: (at 19752) by debbugs.gnu.org; 1 Nov 2019 23:40:22 +0000 Original-Received: from localhost ([127.0.0.1]:57567 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iQgWj-0002Wp-La for submit@debbugs.gnu.org; Fri, 01 Nov 2019 19:40:21 -0400 Original-Received: from host.gofardesign.uk ([208.79.239.190]:43083) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iQgWi-0002WX-OX for 19752@debbugs.gnu.org; Fri, 01 Nov 2019 19:40:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=marxist.se; s=default; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=Ds3ngihxdKCB0oMOGg0/jTHNiSlM94Z3fsDd/q3jqHk=; b=YIy4BcS4jw2d2XNhWegNLaVOiY 47v667I5Tmp7X4d1+Sjc1K0xRW792YRCxNxrZP886tqEU+MWUXmFdjmEvaMp8RnQ1Kh9KTQ1bCeod W3BFfScOQyxva2gs+bN5d4KL/EtyfxMi8MEBA8mRBQGOKwrEo/1whaX2tiLr/+BgNCps=; Original-Received: from h-70-69.a785.priv.bahnhof.se ([155.4.70.69]:38688 helo=localhost) by host.gofardesign.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1iQgWc-0008Im-G3; Fri, 01 Nov 2019 18:40:15 -0500 In-Reply-To: <877e5rqy4z.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sun, 29 Sep 2019 10:56:12 +0200") X-OutGoing-Spam-Status: No, score=-1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - host.gofardesign.uk X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - marxist.se X-Get-Message-Sender-Via: host.gofardesign.uk: authenticated_id: stefan@marxist.se X-Authenticated-Sender: host.gofardesign.uk: stefan@marxist.se 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:170715 Archived-At: Lars Ingebrigtsen writes: > 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? FWIW, I tried this on the Linux console and got 8. I guess ideally Richard would try if evaluating the following and see if it solves the problem for him: (setq shr-use-colors nil) > 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 Best regards, Stefan Kangas