From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.bugs Subject: bug#21557: 25.0.50; HTML renders text invisible Date: Mon, 28 Sep 2015 19:37:45 +0900 Organization: Emacsen advocacy group Message-ID: References: <83mvw7dmoq.fsf@gnu.org> <83io6vdjir.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1443453621 21839 80.91.229.3 (28 Sep 2015 15:20:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 28 Sep 2015 15:20:21 +0000 (UTC) Cc: rms@gnu.org, 21557@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 28 17:20:11 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 1ZgaDo-0005N4-GW for geb-bug-gnu-emacs@m.gmane.org; Mon, 28 Sep 2015 17:20:08 +0200 Original-Received: from localhost ([::1]:37985 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZgaDo-0000yy-1O for geb-bug-gnu-emacs@m.gmane.org; Mon, 28 Sep 2015 11:20:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53980) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZgVor-000160-CE for bug-gnu-emacs@gnu.org; Mon, 28 Sep 2015 06:38:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZgVoo-0005My-6b for bug-gnu-emacs@gnu.org; Mon, 28 Sep 2015 06:38:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:57271) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZgVoo-0005Mr-3l for bug-gnu-emacs@gnu.org; Mon, 28 Sep 2015 06:38:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZgVon-00070H-Ps for bug-gnu-emacs@gnu.org; Mon, 28 Sep 2015 06:38:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Katsumi Yamaoka Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 28 Sep 2015 10:38:01 +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.144343667426899 (code B ref 21557); Mon, 28 Sep 2015 10:38:01 +0000 Original-Received: (at 21557) by debbugs.gnu.org; 28 Sep 2015 10:37:54 +0000 Original-Received: from localhost ([127.0.0.1]:46242 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZgVof-0006zn-ML for submit@debbugs.gnu.org; Mon, 28 Sep 2015 06:37:53 -0400 Original-Received: from [216.246.47.56] (port=50909 helo=memphis.hostforweb.net) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZgVoc-0006zc-Ki for 21557@debbugs.gnu.org; Mon, 28 Sep 2015 06:37:51 -0400 Original-Received: from s70.gtokyofl21.vectant.ne.jp ([202.215.75.70]:62281 helo=localhost) by memphis.hostforweb.net with esmtpsa (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.85) (envelope-from ) id 1ZgVob-0011Cs-Ey; Mon, 28 Sep 2015 05:37:49 -0500 X-Face: #kKnN,xUnmKia.'[pp`; Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu; B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.130014 (=?UTF-8?Q?=E7=9C=9F?= Gnus v0.14) Emacs/25.0.50 (i686-pc-cygwin) Cancel-Lock: sha1:9Y5f2qzh+GEFsRvL2JtyQwINp2Q= X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - memphis.hostforweb.net X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Get-Message-Sender-Via: memphis.hostforweb.net: authenticated_id: yamaokac/only user confirmed/virtual account not confirmed X-Source: X-Source-Args: X-Source-Dir: 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:106997 Archived-At: 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)))