unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Richard Stallman <rms@gnu.org>
Cc: 19752@debbugs.gnu.org
Subject: bug#19752: 25.0.50; fonts in HTML
Date: Sun, 29 Sep 2019 10:56:12 +0200	[thread overview]
Message-ID: <877e5rqy4z.fsf@gnus.org> (raw)
In-Reply-To: <E1YIS0N-0000H8-2i@fencepost.gnu.org> (Richard Stallman's message of "Mon, 02 Feb 2015 20:10:15 -0500")

Richard Stallman <rms@gnu.org> writes:

> I received message in Rmail which had this:
>
>     <body bgcolor="#ebebeb" class="ready" margin="0" padding="0" style="background:#ebebeb; margin:0; padding:0;">
>
> 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





  parent reply	other threads:[~2019-09-29  8:56 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-03  1:10 bug#19752: 25.0.50; fonts in HTML Richard Stallman
2015-02-05 17:26 ` Eli Zaretskii
2015-02-06 12:41   ` Richard Stallman
2015-12-25 22:43 ` Lars Ingebrigtsen
2015-12-26  6:14   ` Richard Stallman
2015-12-26 13:46     ` Lars Ingebrigtsen
2015-12-27  2:52       ` Richard Stallman
2019-09-29  8:56 ` Lars Ingebrigtsen [this message]
2019-11-01 23:40   ` Stefan Kangas
2019-11-02  7:45     ` Eli Zaretskii
2020-08-12 16:32       ` Stefan Kangas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=877e5rqy4z.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=19752@debbugs.gnu.org \
    --cc=rms@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).