From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#21557: 25.0.50; HTML renders text invisible Date: Mon, 28 Sep 2015 16:14:46 +0300 Message-ID: <831tdieldl.fsf@gnu.org> References: <83mvw7dmoq.fsf@gnu.org> <83io6vdjir.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1443468467 15570 80.91.229.3 (28 Sep 2015 19:27:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 28 Sep 2015 19:27:47 +0000 (UTC) Cc: rms@gnu.org, 21557@debbugs.gnu.org To: Katsumi Yamaoka Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 28 21:27:36 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Zge5B-0006kK-4R for geb-bug-gnu-emacs@m.gmane.org; Mon, 28 Sep 2015 21:27:29 +0200 Original-Received: from localhost ([::1]:40385 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zge5A-0008ND-At for geb-bug-gnu-emacs@m.gmane.org; Mon, 28 Sep 2015 15:27:28 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41226) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZgYGr-0002pH-Fb for bug-gnu-emacs@gnu.org; Mon, 28 Sep 2015 09:15:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZgYGl-00037w-FN for bug-gnu-emacs@gnu.org; Mon, 28 Sep 2015 09:15:09 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:57384) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZgYGl-00037f-B6 for bug-gnu-emacs@gnu.org; Mon, 28 Sep 2015 09:15:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZgYGk-0006L9-PH for bug-gnu-emacs@gnu.org; Mon, 28 Sep 2015 09:15:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 28 Sep 2015 13:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21557 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21557-submit@debbugs.gnu.org id=B21557.144344607824300 (code B ref 21557); Mon, 28 Sep 2015 13:15:02 +0000 Original-Received: (at 21557) by debbugs.gnu.org; 28 Sep 2015 13:14:38 +0000 Original-Received: from localhost ([127.0.0.1]:46355 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZgYGM-0006Js-6O for submit@debbugs.gnu.org; Mon, 28 Sep 2015 09:14:38 -0400 Original-Received: from mtaout25.012.net.il ([80.179.55.181]:51248) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZgYGK-0006Jg-Bb for 21557@debbugs.gnu.org; Mon, 28 Sep 2015 09:14:37 -0400 Original-Received: from conversion-daemon.mtaout25.012.net.il by mtaout25.012.net.il (HyperSendmail v2007.08) id <0NVE00F001JKON00@mtaout25.012.net.il> for 21557@debbugs.gnu.org; Mon, 28 Sep 2015 16:11:46 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by mtaout25.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NVE00NNJ1ZLSSD0@mtaout25.012.net.il>; Mon, 28 Sep 2015 16:11:46 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:107006 Archived-At: > Date: Mon, 28 Sep 2015 19:37:45 +0900 > From: Katsumi Yamaoka > 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?