unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Katsumi Yamaoka <yamaoka@jpl.org>
Cc: rms@gnu.org, 21557@debbugs.gnu.org
Subject: bug#21557: 25.0.50; HTML renders text invisible
Date: Mon, 28 Sep 2015 16:14:46 +0300	[thread overview]
Message-ID: <831tdieldl.fsf@gnu.org> (raw)
In-Reply-To: <b4m4miekex2.fsf@jpl.org>

> Date: Mon, 28 Sep 2015 19:37:45 +0900
> From: Katsumi Yamaoka <yamaoka@jpl.org>
> Cc: rms@gnu.org, 21557@debbugs.gnu.org
> 
> On Mon, 28 Sep 2015 11:40:12 +0300, Eli Zaretskii wrote:
> > I think an Emacs-only solution would be preferable.  Can
> > shr-color-visible-luminance-min be adapted to a small number of
> > colors?  The simplest would perhaps be just overriding the foreground
> > color with something that is legible on the background color.
> 
> The most simplest way would be:
> 
> --- shr.el~	2015-08-02 22:23:44.000000000 +0000
> +++ shr.el	2015-09-28 10:34:41.025287800 +0000
> @@ -1044,3 +1044,3 @@
>  (defun shr-colorize-region (start end fg &optional bg)
> -  (when (or fg bg)
> +  (when (and (or fg bg) (>= (display-color-cells) 256))
>      (let ((new-colors (shr-color-check fg bg)))
> 

Richard, does this solve your problems?

I wonder whether 256 above should be replaced with a much lower
number, like 88, perhaps?





  reply	other threads:[~2015-09-28 13:14 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-25  8:28 bug#21557: 25.0.50; HTML renders text invisible Richard Stallman
2015-09-28  6:43 ` Katsumi Yamaoka
2015-09-28  7:31   ` Eli Zaretskii
2015-09-28  8:04     ` Katsumi Yamaoka
2015-09-28  8:40       ` Eli Zaretskii
2015-09-28 10:37         ` Katsumi Yamaoka
2015-09-28 13:14           ` Eli Zaretskii [this message]
2015-09-28 19:09             ` Richard Stallman
2015-09-29  2:02               ` Katsumi Yamaoka
2015-09-28 23:02             ` Katsumi Yamaoka
2015-09-29  5:10               ` Eli Zaretskii
2015-09-29  6:32                 ` Katsumi Yamaoka

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=831tdieldl.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=21557@debbugs.gnu.org \
    --cc=rms@gnu.org \
    --cc=yamaoka@jpl.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).