From unknown Sun Jun 22 20:59:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21557: 25.0.50; HTML renders text invisible Resent-From: Richard Stallman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 25 Sep 2015 08:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 21557 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 21557@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Reply-To: rms@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.144316973410344 (code B ref -1); Fri, 25 Sep 2015 08:29:02 +0000 Received: (at submit) by debbugs.gnu.org; 25 Sep 2015 08:28:54 +0000 Received: from localhost ([127.0.0.1]:42463 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZfONB-0002gm-Uy for submit@debbugs.gnu.org; Fri, 25 Sep 2015 04:28:54 -0400 Received: from eggs.gnu.org ([208.118.235.92]:58041) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZfON9-0002gb-W4 for submit@debbugs.gnu.org; Fri, 25 Sep 2015 04:28:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZfON8-0005Uu-Ii for submit@debbugs.gnu.org; Fri, 25 Sep 2015 04:28:51 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:56727) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfON8-0005Ug-Gd for submit@debbugs.gnu.org; Fri, 25 Sep 2015 04:28:50 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39761) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfON6-0000x5-R3 for bug-gnu-emacs@gnu.org; Fri, 25 Sep 2015 04:28:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZfON5-0005T4-3h for bug-gnu-emacs@gnu.org; Fri, 25 Sep 2015 04:28:48 -0400 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:36566) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfON4-0005Sz-V1 for bug-gnu-emacs@gnu.org; Fri, 25 Sep 2015 04:28:47 -0400 Received: from rms by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1ZfON4-0000Wr-HL; Fri, 25 Sep 2015 04:28:46 -0400 Content-Type: text/plain; charset=Utf-8 From: Richard Stallman Message-Id: Date: Fri, 25 Sep 2015 04:28:46 -0400 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) I received a message whose text was rendered as invisible when I viewed it in Rmail. I think it is because of 'color:#000'. I think that if HTML specifies the same color for foreground and background, rendering should use different colors so that the text can be seen. Here is a redacted version which reproduces the bug. >>From a@b.org Wed Sep 23 13:26:14 2015 Envelope-to: rms@gnu.org Delivery-date: Wed, 23 Sep 2015 13:26:14 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.5 required=5.0 tests=BAYES_50,HTML_MESSAGE, MIME_HTML_ONLY,RCVD_IN_DNSWL_NONE autolearn=disabled version=3.3.2 X-SID: LhS71r0032XSfNk01 Received: (qmail 29571 invoked by uid 99); 23 Sep 2015 17:26:07 -0000 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset="utf-8" User-Agent: Workspace Webmail 5.15.9 From: To: xxx@gnu.org Cc: "Richard Stallman" Subject: Re: STALLMAN BOOKS Date: Wed, 23 Sep 2015 10:26:06 -0700 Mime-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x Resent-From: Katsumi Yamaoka Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 28 Sep 2015 06:44: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: To: Richard Stallman Cc: 21557@debbugs.gnu.org Received: via spool by 21557-submit@debbugs.gnu.org id=B21557.144342260627203 (code B ref 21557); Mon, 28 Sep 2015 06:44:02 +0000 Received: (at 21557) by debbugs.gnu.org; 28 Sep 2015 06:43:26 +0000 Received: from localhost ([127.0.0.1]:46118 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZgS9m-00074h-5f for submit@debbugs.gnu.org; Mon, 28 Sep 2015 02:43:26 -0400 Received: from [216.246.47.56] (port=37747 helo=memphis.hostforweb.net) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZgS9j-00074Y-MG for 21557@debbugs.gnu.org; Mon, 28 Sep 2015 02:43:24 -0400 Received: from s70.gtokyofl21.vectant.ne.jp ([202.215.75.70]:63490 helo=localhost) by memphis.hostforweb.net with esmtpsa (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.85) (envelope-from ) id 1ZgS9h-001Rsl-0l; Mon, 28 Sep 2015 01:43:21 -0500 Date: Mon, 28 Sep 2015 15:43:16 +0900 Message-ID: From: Katsumi Yamaoka References: Organization: Emacsen advocacy group 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:9kyafFHBDqv+pUYo9zXJ+m9XbgE= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: On Fri, 25 Sep 2015 04:28:46 -0400, Richard Stallman wrote: > I received a message whose text was rendered as invisible when I > viewed it in Rmail. I think it is because of 'color:#000'. I tried this with the form below and found no problem. Increasing the value of shr-color-visible-luminance-min raises the contrast. [...] Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 1.3 RDNS_NONE Delivered to internal network by a host with no rDNS X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: On Fri, 25 Sep 2015 04:28:46 -0400, Richard Stallman wrote: > I received a message whose text was rendered as invisible when I > viewed it in Rmail. I think it is because of 'color:#000'. I tried this with the form below and found no problem. Increasing the value of shr-color-visible-luminance-min raises the contrast. [...] Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 1.3 RDNS_NONE Delivered to internal network by a host with no rDNS On Fri, 25 Sep 2015 04:28:46 -0400, Richard Stallman wrote: > I received a message whose text was rendered as invisible when I > viewed it in Rmail. I think it is because of 'color:#000'. I tried this with the form below and found no problem. Increasing the value of shr-color-visible-luminance-min raises the contrast. > I think that if HTML specifies the same color for foreground and > background, rendering should use different colors so that the text > can be seen. shr-color.el should do that. But if you have the fg color of the variable-pitch face set (to #000), it will have no effect. Because the new color that shr-color.el chooses is appended, not prepended to the existing one: (defun shr-colorize-region (start end fg &optional bg) [...] (add-face-text-property start end (list :foreground (cadr new-colors)) t)) ----------------------------------^ I'm not sure whether changing it to nil causes another problem. My recipe: emacs -Q -fg white -bg black (let ((tmp (get-buffer-create "*tmp*"))) (require 'rmailmm) (with-current-buffer tmp (erase-buffer) (insert (quoted-printable-decode-string "\
Hi Jeanne

I know I gave you an address for = the books to be sent. I am sending you an address at Kent for the books to = be sent. It makes more sense for the books to be sent there:
=
")) (insert (prog1 (with-temp-buffer (rmail-mime-render-html-shr tmp) (buffer-string)) (erase-buffer))) (display-buffer tmp))) From unknown Sun Jun 22 20:59:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21557: 25.0.50; HTML renders text invisible Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 28 Sep 2015 07:32: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: To: Katsumi Yamaoka Cc: rms@gnu.org, 21557@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 21557-submit@debbugs.gnu.org id=B21557.144342551132634 (code B ref 21557); Mon, 28 Sep 2015 07:32:02 +0000 Received: (at 21557) by debbugs.gnu.org; 28 Sep 2015 07:31:51 +0000 Received: from localhost ([127.0.0.1]:46167 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZgSuc-0008UI-88 for submit@debbugs.gnu.org; Mon, 28 Sep 2015 03:31:50 -0400 Received: from mtaout21.012.net.il ([80.179.55.169]:35588) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZgSuS-0008Tq-Ti for 21557@debbugs.gnu.org; Mon, 28 Sep 2015 03:31:42 -0400 Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0NVD00I00M47ZG00@a-mtaout21.012.net.il> for 21557@debbugs.gnu.org; Mon, 28 Sep 2015 10:31:38 +0300 (IDT) Received: from HOME-C4E4A596F7 ([84.94.185.246]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NVD00I1TM8QWM70@a-mtaout21.012.net.il>; Mon, 28 Sep 2015 10:31:38 +0300 (IDT) Date: Mon, 28 Sep 2015 10:31:49 +0300 From: Eli Zaretskii In-reply-to: X-012-Sender: halo1@inter.net.il Message-id: <83mvw7dmoq.fsf@gnu.org> References: X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > Date: Mon, 28 Sep 2015 15:43:16 +0900 > From: Katsumi Yamaoka > Cc: 21557@debbugs.gnu.org > > On Fri, 25 Sep 2015 04:28:46 -0400, Richard Stallman wrote: > > I received a message whose text was rendered as invisible when I > > viewed it in Rmail. I think it is because of 'color:#000'. > > I tried this with the form below and found no problem. Increasing > the value of shr-color-visible-luminance-min raises the contrast. Does shr-color-visible-luminance-min have any effect on a TTY? I think Richard is using text-mode frames that support only 8 colors. So perhaps try this in a TTY frame, and see if you still see no problems. If you do, perhaps we need some more magic in shr-color.el, or maybe even in tty-colors.el (unlikely). From unknown Sun Jun 22 20:59:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21557: 25.0.50; HTML renders text invisible In-Reply-To: Resent-From: Katsumi Yamaoka Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 28 Sep 2015 08:05: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: To: Eli Zaretskii Cc: rms@gnu.org, 21557@debbugs.gnu.org Received: via spool by 21557-submit@debbugs.gnu.org id=B21557.14434274774838 (code B ref 21557); Mon, 28 Sep 2015 08:05:02 +0000 Received: (at 21557) by debbugs.gnu.org; 28 Sep 2015 08:04:37 +0000 Received: from localhost ([127.0.0.1]:46176 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZgTQL-0001Fy-2F for submit@debbugs.gnu.org; Mon, 28 Sep 2015 04:04:37 -0400 Received: from [216.246.47.56] (port=50928 helo=memphis.hostforweb.net) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZgTQJ-0001Fo-B2 for 21557@debbugs.gnu.org; Mon, 28 Sep 2015 04:04:35 -0400 Received: from s70.gtokyofl21.vectant.ne.jp ([202.215.75.70]:62997 helo=localhost) by memphis.hostforweb.net with esmtpsa (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.85) (envelope-from ) id 1ZgTQI-002qyJ-As; Mon, 28 Sep 2015 03:04:34 -0500 Date: Mon, 28 Sep 2015 17:04:31 +0900 Message-ID: From: Katsumi Yamaoka References: <83mvw7dmoq.fsf@gnu.org> Organization: Emacsen advocacy group 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:dwomexqLUNk6qZdfXjBaCUduCCY= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: On Mon, 28 Sep 2015 10:31:49 +0300, Eli Zaretskii wrote: > Does shr-color-visible-luminance-min have any effect on a TTY? I > think Richard is using text-mode frames that support only 8 colors. Ooops. I verified it doesn't help on a TTY. So, how about using lynx instead of shr? I.e., [...] Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 1.3 RDNS_NONE Delivered to internal network by a host with no rDNS X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: On Mon, 28 Sep 2015 10:31:49 +0300, Eli Zaretskii wrote: > Does shr-color-visible-luminance-min have any effect on a TTY? I > think Richard is using text-mode frames that support only 8 colors. Ooops. I verified it doesn't help on a TTY. So, how about using lynx instead of shr? I.e., [...] Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 1.3 RDNS_NONE Delivered to internal network by a host with no rDNS On Mon, 28 Sep 2015 10:31:49 +0300, Eli Zaretskii wrote: > Does shr-color-visible-luminance-min have any effect on a TTY? I > think Richard is using text-mode frames that support only 8 colors. Ooops. I verified it doesn't help on a TTY. So, how about using lynx instead of shr? I.e., (setq rmail-mime-render-html-function 'rmail-mime-render-html-lynx) This requires the external lynx program. As far as I tested, it doesn't respect the color spec in an html source. From unknown Sun Jun 22 20:59:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21557: 25.0.50; HTML renders text invisible Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 28 Sep 2015 08:41: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: To: Katsumi Yamaoka Cc: rms@gnu.org, 21557@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 21557-submit@debbugs.gnu.org id=B21557.14434296169903 (code B ref 21557); Mon, 28 Sep 2015 08:41:02 +0000 Received: (at 21557) by debbugs.gnu.org; 28 Sep 2015 08:40:16 +0000 Received: from localhost ([127.0.0.1]:46217 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZgTyq-0002Zd-Fm for submit@debbugs.gnu.org; Mon, 28 Sep 2015 04:40:16 -0400 Received: from mtaout28.012.net.il ([80.179.55.184]:50990) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZgTyo-0002ZR-3u for 21557@debbugs.gnu.org; Mon, 28 Sep 2015 04:40:15 -0400 Received: from conversion-daemon.mtaout28.012.net.il by mtaout28.012.net.il (HyperSendmail v2007.08) id <0NVD00900O845500@mtaout28.012.net.il> for 21557@debbugs.gnu.org; Mon, 28 Sep 2015 11:39:50 +0300 (IDT) Received: from HOME-C4E4A596F7 ([84.94.185.246]) by mtaout28.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NVD00IZFPEE1X00@mtaout28.012.net.il>; Mon, 28 Sep 2015 11:39:50 +0300 (IDT) Date: Mon, 28 Sep 2015 11:40:12 +0300 From: Eli Zaretskii In-reply-to: X-012-Sender: halo1@inter.net.il Message-id: <83io6vdjir.fsf@gnu.org> References: <83mvw7dmoq.fsf@gnu.org> X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > Date: Mon, 28 Sep 2015 17:04:31 +0900 > From: Katsumi Yamaoka > Cc: rms@gnu.org, 21557@debbugs.gnu.org > > On Mon, 28 Sep 2015 10:31:49 +0300, Eli Zaretskii wrote: > > Does shr-color-visible-luminance-min have any effect on a TTY? I > > think Richard is using text-mode frames that support only 8 colors. > > Ooops. I verified it doesn't help on a TTY. > So, how about using lynx instead of shr? 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. From unknown Sun Jun 22 20:59:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21557: 25.0.50; HTML renders text invisible 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: To: Eli Zaretskii Cc: rms@gnu.org, 21557@debbugs.gnu.org Received: via spool by 21557-submit@debbugs.gnu.org id=B21557.144343667426899 (code B ref 21557); Mon, 28 Sep 2015 10:38:01 +0000 Received: (at 21557) by debbugs.gnu.org; 28 Sep 2015 10:37:54 +0000 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 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 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 Date: Mon, 28 Sep 2015 19:37:45 +0900 Message-ID: From: Katsumi Yamaoka References: <83mvw7dmoq.fsf@gnu.org> <83io6vdjir.fsf@gnu.org> Organization: Emacsen advocacy group 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= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: 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. [...] Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 1.3 RDNS_NONE Delivered to internal network by a host with no rDNS X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: 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. [...] Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 1.3 RDNS_NONE Delivered to internal network by a host with no rDNS 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))) From unknown Sun Jun 22 20:59:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21557: 25.0.50; HTML renders text invisible 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: To: Katsumi Yamaoka Cc: rms@gnu.org, 21557@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 21557-submit@debbugs.gnu.org id=B21557.144344607824300 (code B ref 21557); Mon, 28 Sep 2015 13:15:02 +0000 Received: (at 21557) by debbugs.gnu.org; 28 Sep 2015 13:14:38 +0000 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 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 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) 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) Date: Mon, 28 Sep 2015 16:14:46 +0300 From: Eli Zaretskii In-reply-to: X-012-Sender: halo1@inter.net.il Message-id: <831tdieldl.fsf@gnu.org> References: <83mvw7dmoq.fsf@gnu.org> <83io6vdjir.fsf@gnu.org> X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > 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? From unknown Sun Jun 22 20:59:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21557: 25.0.50; HTML renders text invisible Resent-From: Richard Stallman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 28 Sep 2015 19:10: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: To: Eli Zaretskii Cc: yamaoka@jpl.org, 21557@debbugs.gnu.org Reply-To: rms@gnu.org Received: via spool by 21557-submit@debbugs.gnu.org id=B21557.144346739626138 (code B ref 21557); Mon, 28 Sep 2015 19:10:02 +0000 Received: (at 21557) by debbugs.gnu.org; 28 Sep 2015 19:09:56 +0000 Received: from localhost ([127.0.0.1]:46936 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZgdoC-0006nW-6h for submit@debbugs.gnu.org; Mon, 28 Sep 2015 15:09:56 -0400 Received: from eggs.gnu.org ([208.118.235.92]:57034) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZgdoA-0006nO-F7 for 21557@debbugs.gnu.org; Mon, 28 Sep 2015 15:09:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zgdo9-0001QV-MH for 21557@debbugs.gnu.org; Mon, 28 Sep 2015 15:09:54 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:49997) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zgdo3-0001M0-Al; Mon, 28 Sep 2015 15:09:47 -0400 Received: from rms by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1Zgdo2-0005Dm-2o; Mon, 28 Sep 2015 15:09:46 -0400 Content-Type: text/plain; charset=Utf-8 From: Richard Stallman In-reply-to: <831tdieldl.fsf@gnu.org> (message from Eli Zaretskii on Mon, 28 Sep 2015 16:14:46 +0300) References: <83mvw7dmoq.fsf@gnu.org> <83io6vdjir.fsf@gnu.org> <831tdieldl.fsf@gnu.org> Message-Id: Date: Mon, 28 Sep 2015 15:09:46 -0400 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > > (defun shr-colorize-region (start end fg &optional bg) > > - (when (or fg bg) > > + (when (and (or fg bg) (>= (display-color-cells) 256)) This fixes it. Thanks. > I wonder whether 256 above should be replaced with a much lower > number, like 88, perhaps? I don't know. -- Dr Richard Stallman President, Free Software Foundation (gnu.org, fsf.org) Internet Hall-of-Famer (internethalloffame.org) Skype: No way! See stallman.org/skype.html. From unknown Sun Jun 22 20:59:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21557: 25.0.50; HTML renders text invisible In-Reply-To: Resent-From: Katsumi Yamaoka Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 28 Sep 2015 23:03: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: To: Eli Zaretskii Cc: rms@gnu.org, 21557@debbugs.gnu.org Received: via spool by 21557-submit@debbugs.gnu.org id=B21557.144348134620870 (code B ref 21557); Mon, 28 Sep 2015 23:03:02 +0000 Received: (at 21557) by debbugs.gnu.org; 28 Sep 2015 23:02:26 +0000 Received: from localhost ([127.0.0.1]:47025 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZghRB-0005QY-Sf for submit@debbugs.gnu.org; Mon, 28 Sep 2015 19:02:26 -0400 Received: from [216.246.47.56] (port=58839 helo=memphis.hostforweb.net) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZghRA-0005QP-5n for 21557@debbugs.gnu.org; Mon, 28 Sep 2015 19:02:24 -0400 Received: from s70.gtokyofl21.vectant.ne.jp ([202.215.75.70]:63126 helo=localhost) by memphis.hostforweb.net with esmtpsa (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.85) (envelope-from ) id 1ZghR8-0017ba-Qe; Mon, 28 Sep 2015 18:02:23 -0500 Date: Tue, 29 Sep 2015 08:02:17 +0900 Message-ID: From: Katsumi Yamaoka References: <83mvw7dmoq.fsf@gnu.org> <83io6vdjir.fsf@gnu.org> <831tdieldl.fsf@gnu.org> Organization: Emacsen advocacy group 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:Vc8App8MKlzrowvZOUDSoPz+k2E= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: On Mon, 28 Sep 2015 16:14:46 +0300, Eli Zaretskii wrote: >> + (when (and (or fg bg) (>= (display-color-cells) 256)) > I wonder whether 256 above should be replaced with a much lower > number, like 88, perhaps? [...] Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 1.3 RDNS_NONE Delivered to internal network by a host with no rDNS X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: On Mon, 28 Sep 2015 16:14:46 +0300, Eli Zaretskii wrote: >> + (when (and (or fg bg) (>= (display-color-cells) 256)) > I wonder whether 256 above should be replaced with a much lower > number, like 88, perhaps? [...] Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 1.3 RDNS_NONE Delivered to internal network by a host with no rDNS On Mon, 28 Sep 2015 16:14:46 +0300, Eli Zaretskii wrote: >> + (when (and (or fg bg) (>= (display-color-cells) 256)) > I wonder whether 256 above should be replaced with a much lower > number, like 88, perhaps? 256 means `Depth 8 Pseudo Color', i.e., 24bit color (R:8bit, G:8bit, B:8bit) but only 256 cells in the color pallet, AFAIK. It matches shr-color.el that calculates colors based on 24bit. But I don't know what is 88-color system. Is it not based on 24bit color? If not, a color shr-color offers will be too dim. From unknown Sun Jun 22 20:59:05 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.503 (Entity 5.503) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: rms@gnu.org Subject: bug#21557: closed (Re: bug#21557: 25.0.50; HTML renders text invisible) Message-ID: References: X-Gnu-PR-Message: they-closed 21557 X-Gnu-PR-Package: emacs Reply-To: 21557@debbugs.gnu.org Date: Tue, 29 Sep 2015 02:03:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1443492183-6974-1" This is a multi-part message in MIME format... ------------=_1443492183-6974-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #21557: 25.0.50; HTML renders text invisible which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 21557@debbugs.gnu.org. --=20 21557: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D21557 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1443492183-6974-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 21557-done) by debbugs.gnu.org; 29 Sep 2015 02:02:28 +0000 Received: from localhost ([127.0.0.1]:47049 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZgkFQ-0001nK-2y for submit@debbugs.gnu.org; Mon, 28 Sep 2015 22:02:28 -0400 Received: from [216.246.47.56] (port=41249 helo=memphis.hostforweb.net) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZgkFM-0001n9-Vk for 21557-done@debbugs.gnu.org; Mon, 28 Sep 2015 22:02:25 -0400 Received: from s70.gtokyofl21.vectant.ne.jp ([202.215.75.70]:63898 helo=localhost) by memphis.hostforweb.net with esmtpsa (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.85) (envelope-from ) id 1ZgkFL-004FJj-L7; Mon, 28 Sep 2015 21:02:23 -0500 Date: Tue, 29 Sep 2015 11:02:20 +0900 Message-ID: From: Katsumi Yamaoka To: Richard Stallman Subject: Re: bug#21557: 25.0.50; HTML renders text invisible References: <83mvw7dmoq.fsf@gnu.org> <83io6vdjir.fsf@gnu.org> <831tdieldl.fsf@gnu.org> Organization: Emacsen advocacy group 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:tisjh7lc7VWQKgGIYI84yyIwsNg= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: On Mon, 28 Sep 2015 15:09:46 -0400, Richard Stallman wrote: >>> (defun shr-colorize-region (start end fg &optional bg) >>> - (when (or fg bg) >>> + (when (and (or fg bg) (>= (display-color-cells) 256)) [...] Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 1.3 RDNS_NONE Delivered to internal network by a host with no rDNS X-Debbugs-Envelope-To: 21557-done Cc: 21557-done@debbugs.gnu.org, Eli Zaretskii X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: On Mon, 28 Sep 2015 15:09:46 -0400, Richard Stallman wrote: >>> (defun shr-colorize-region (start end fg &optional bg) >>> - (when (or fg bg) >>> + (when (and (or fg bg) (>= (display-color-cells) 256)) [...] Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 1.3 RDNS_NONE Delivered to internal network by a host with no rDNS On Mon, 28 Sep 2015 15:09:46 -0400, Richard Stallman wrote: >>> (defun shr-colorize-region (start end fg &optional bg) >>> - (when (or fg bg) >>> + (when (and (or fg bg) (>= (display-color-cells) 256)) > This fixes it. Thanks. Done. ------------=_1443492183-6974-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 25 Sep 2015 08:28:54 +0000 Received: from localhost ([127.0.0.1]:42463 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZfONB-0002gm-Uy for submit@debbugs.gnu.org; Fri, 25 Sep 2015 04:28:54 -0400 Received: from eggs.gnu.org ([208.118.235.92]:58041) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZfON9-0002gb-W4 for submit@debbugs.gnu.org; Fri, 25 Sep 2015 04:28:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZfON8-0005Uu-Ii for submit@debbugs.gnu.org; Fri, 25 Sep 2015 04:28:51 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:56727) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfON8-0005Ug-Gd for submit@debbugs.gnu.org; Fri, 25 Sep 2015 04:28:50 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39761) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfON6-0000x5-R3 for bug-gnu-emacs@gnu.org; Fri, 25 Sep 2015 04:28:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZfON5-0005T4-3h for bug-gnu-emacs@gnu.org; Fri, 25 Sep 2015 04:28:48 -0400 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:36566) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfON4-0005Sz-V1 for bug-gnu-emacs@gnu.org; Fri, 25 Sep 2015 04:28:47 -0400 Received: from rms by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1ZfON4-0000Wr-HL; Fri, 25 Sep 2015 04:28:46 -0400 Content-Type: text/plain; charset=Utf-8 From: Richard Stallman To: bug-gnu-emacs@gnu.org Subject: 25.0.50; HTML renders text invisible Message-Id: Date: Fri, 25 Sep 2015 04:28:46 -0400 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: rms@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) I received a message whose text was rendered as invisible when I viewed it in Rmail. I think it is because of 'color:#000'. I think that if HTML specifies the same color for foreground and background, rendering should use different colors so that the text can be seen. Here is a redacted version which reproduces the bug. >>From a@b.org Wed Sep 23 13:26:14 2015 Envelope-to: rms@gnu.org Delivery-date: Wed, 23 Sep 2015 13:26:14 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.5 required=5.0 tests=BAYES_50,HTML_MESSAGE, MIME_HTML_ONLY,RCVD_IN_DNSWL_NONE autolearn=disabled version=3.3.2 X-SID: LhS71r0032XSfNk01 Received: (qmail 29571 invoked by uid 99); 23 Sep 2015 17:26:07 -0000 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset="utf-8" User-Agent: Workspace Webmail 5.15.9 From: To: xxx@gnu.org Cc: "Richard Stallman" Subject: Re: STALLMAN BOOKS Date: Wed, 23 Sep 2015 10:26:06 -0700 Mime-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 29 Sep 2015 05:11: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: To: Katsumi Yamaoka Cc: rms@gnu.org, 21557@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 21557-submit@debbugs.gnu.org id=B21557.144350345226468 (code B ref 21557); Tue, 29 Sep 2015 05:11:01 +0000 Received: (at 21557) by debbugs.gnu.org; 29 Sep 2015 05:10:52 +0000 Received: from localhost ([127.0.0.1]:47096 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZgnBj-0006sn-Qq for submit@debbugs.gnu.org; Tue, 29 Sep 2015 01:10:52 -0400 Received: from mtaout22.012.net.il ([80.179.55.172]:34057) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZgnBg-0006sf-H8 for 21557@debbugs.gnu.org; Tue, 29 Sep 2015 01:10:50 -0400 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0NVF00700AAMZZ00@a-mtaout22.012.net.il> for 21557@debbugs.gnu.org; Tue, 29 Sep 2015 08:10:47 +0300 (IDT) Received: from HOME-C4E4A596F7 ([84.94.185.246]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NVF007L6ADYTY40@a-mtaout22.012.net.il>; Tue, 29 Sep 2015 08:10:47 +0300 (IDT) Date: Tue, 29 Sep 2015 08:10:59 +0300 From: Eli Zaretskii In-reply-to: X-012-Sender: halo1@inter.net.il Message-id: <83r3lhdd3w.fsf@gnu.org> References: <83mvw7dmoq.fsf@gnu.org> <83io6vdjir.fsf@gnu.org> <831tdieldl.fsf@gnu.org> X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > Date: Tue, 29 Sep 2015 08:02:17 +0900 > From: Katsumi Yamaoka > Cc: rms@gnu.org, 21557@debbugs.gnu.org > > On Mon, 28 Sep 2015 16:14:46 +0300, Eli Zaretskii wrote: > >> + (when (and (or fg bg) (>= (display-color-cells) 256)) > > > I wonder whether 256 above should be replaced with a much lower > > number, like 88, perhaps? > > 256 means `Depth 8 Pseudo Color', i.e., 24bit color (R:8bit, > G:8bit, B:8bit) but only 256 cells in the color pallet, AFAIK. > It matches shr-color.el that calculates colors based on 24bit. > But I don't know what is 88-color system. Is it not based on > 24bit color? If not, a color shr-color offers will be too dim. 88-color modes are supported by newer versions of xterm. My reasoning was that when you have 88 colors to use, shr-color-visible-luminance-min might do its job well enough for us to be able to honor the colors requested by HTML. From unknown Sun Jun 22 20:59:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21557: 25.0.50; HTML renders text invisible In-Reply-To: Resent-From: Katsumi Yamaoka Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 29 Sep 2015 06:33: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: To: Eli Zaretskii Cc: rms@gnu.org, 21557@debbugs.gnu.org Received: via spool by 21557-submit@debbugs.gnu.org id=B21557.14435083281939 (code B ref 21557); Tue, 29 Sep 2015 06:33:02 +0000 Received: (at 21557) by debbugs.gnu.org; 29 Sep 2015 06:32:08 +0000 Received: from localhost ([127.0.0.1]:47117 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZgoSN-0000VD-TM for submit@debbugs.gnu.org; Tue, 29 Sep 2015 02:32:08 -0400 Received: from [216.246.47.56] (port=59618 helo=memphis.hostforweb.net) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZgoSL-0000UC-RX for 21557@debbugs.gnu.org; Tue, 29 Sep 2015 02:32:06 -0400 Received: from s70.gtokyofl21.vectant.ne.jp ([202.215.75.70]:60011 helo=localhost) by memphis.hostforweb.net with esmtpsa (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.85) (envelope-from ) id 1ZgoSK-004OEU-DI; Tue, 29 Sep 2015 01:32:04 -0500 Date: Tue, 29 Sep 2015 15:32:00 +0900 Message-ID: From: Katsumi Yamaoka References: <83mvw7dmoq.fsf@gnu.org> <83io6vdjir.fsf@gnu.org> <831tdieldl.fsf@gnu.org> <83r3lhdd3w.fsf@gnu.org> Organization: Emacsen advocacy group 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:0EdoZpKMDTeG2IY96y4jTHR4Meg= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: On Tue, 29 Sep 2015 08:10:59 +0300, Eli Zaretskii wrote: > 88-color modes are supported by newer versions of xterm. > My reasoning was that when you have 88 colors to use, > shr-color-visible-luminance-min might do its job well enough for us to > be able to honor the colors requested by HTML. [...] Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 1.3 RDNS_NONE Delivered to internal network by a host with no rDNS X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: On Tue, 29 Sep 2015 08:10:59 +0300, Eli Zaretskii wrote: > 88-color modes are supported by newer versions of xterm. > My reasoning was that when you have 88 colors to use, > shr-color-visible-luminance-min might do its job well enough for us to > be able to honor the colors requested by HTML. [...] Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 1.3 RDNS_NONE Delivered to internal network by a host with no rDNS On Tue, 29 Sep 2015 08:10:59 +0300, Eli Zaretskii wrote: > 88-color modes are supported by newer versions of xterm. > My reasoning was that when you have 88 colors to use, > shr-color-visible-luminance-min might do its job well enough for us to > be able to honor the colors requested by HTML. Ok. I've changed >=256 to >=88. Though my xterm on Cygwin doesn't seem to support above 8 colors, I understood how Emacs treats a 24-bit color spec on it. So, I can imagine it will be useful on 88-color tty if shr-color-visible-luminance-min (and also shr-color-visible-distance-min?) are customized properly. Thanks.