From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Wolfgang Jenkner Newsgroups: gmane.emacs.devel Subject: Re: Turning off colorization Date: Thu, 06 Nov 2014 19:00:38 +0100 Message-ID: <85lhnoxl14.fsf@iznogoud.viz> References: <87a944cm3x.fsf@moondust.localdomain> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1415297132 1693 80.91.229.3 (6 Nov 2014 18:05:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 6 Nov 2014 18:05:32 +0000 (UTC) Cc: emacs-devel@gnu.org To: nljlistbox2@gmail.com (N. Jackson) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 06 19:05:25 2014 Return-path: Envelope-to: ged-emacs-devel@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 1XmRQy-0000rc-3e for ged-emacs-devel@m.gmane.org; Thu, 06 Nov 2014 19:05:24 +0100 Original-Received: from localhost ([::1]:55423 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XmRQs-0003XM-Gl for ged-emacs-devel@m.gmane.org; Thu, 06 Nov 2014 13:05:18 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47366) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XmRQh-0003Uu-F2 for emacs-devel@gnu.org; Thu, 06 Nov 2014 13:05:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XmRQZ-0003Pd-UH for emacs-devel@gnu.org; Thu, 06 Nov 2014 13:05:07 -0500 Original-Received: from b2bfep14.mx.upcmail.net ([62.179.121.59]:58278) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XmRQZ-0003PO-Jk for emacs-devel@gnu.org; Thu, 06 Nov 2014 13:04:59 -0500 Original-Received: from edge12.upcmail.net ([192.168.13.82]) by b2bfep14-int.chello.at (InterMail vM.8.01.05.11 201-2260-151-128-20120928) with ESMTP id <20141106180456.ODFU6284.b2bfep14-int.chello.at@edge12.upcmail.net> for ; Thu, 6 Nov 2014 19:04:56 +0100 Original-Received: from iznogoud.viz ([91.119.95.9]) by edge12.upcmail.net with edge id CJ4v1p00J0C80wz0CJ4vny; Thu, 06 Nov 2014 19:04:56 +0100 X-SourceIP: 91.119.95.9 Original-Received: from wolfgang by iznogoud.viz with local (Exim 4.84 (FreeBSD)) (envelope-from ) id 1XmRQV-0000So-AE; Thu, 06 Nov 2014 19:04:55 +0100 Mail-Followup-To: nljlistbox2@gmail.com (N. Jackson), emacs-devel@gnu.org User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (berkeley-unix) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 62.179.121.59 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:176470 Archived-At: On Thu, Nov 06 2014, N. Jackson wrote: > It's very rare to get buffer text that's unreadable[1], except when > reading HTML mail in Gnus[2] where I very frequently get presented > with a medium grey text on a medium grey background or a very dark > text on my normal black background. If you are satisfied with an ad hoc solution for this problem the following snippet (eval'ed with M-: in the article buffer) should work with a graphical version of emacs (at least with the built-in html renderer, viz. shr.el). You can then go back to the colourized version by simply redisplaying the article (`g' in the summary or article buffer). (let ((fg (face-foreground 'default)) (bg (face-background 'default))) (with-silent-modifications (font-lock-prepend-text-property (point-min) (point-max) 'face `(:foreground ,fg :background ,bg))))