From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: nljlistbox2@gmail.com (N. Jackson) Newsgroups: gmane.emacs.devel Subject: Re: Turning off colorization Date: Thu, 06 Nov 2014 15:44:46 -0400 Message-ID: <874mucazbl.fsf@moondust.localdomain> References: <87a944cm3x.fsf@moondust.localdomain> <85lhnoxl14.fsf@iznogoud.viz> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1415303185 7559 80.91.229.3 (6 Nov 2014 19:46:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 6 Nov 2014 19:46:25 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 06 20:46:13 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 1XmT0V-0002jP-0f for ged-emacs-devel@m.gmane.org; Thu, 06 Nov 2014 20:46:11 +0100 Original-Received: from localhost ([::1]:55791 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XmT0U-0002RA-Ms for ged-emacs-devel@m.gmane.org; Thu, 06 Nov 2014 14:46:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38992) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XmSzY-0001dV-C2 for emacs-devel@gnu.org; Thu, 06 Nov 2014 14:45:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XmSzQ-0002Ii-Sx for emacs-devel@gnu.org; Thu, 06 Nov 2014 14:45:12 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:58668) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XmSzQ-0002Cm-Ka for emacs-devel@gnu.org; Thu, 06 Nov 2014 14:45:04 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XmSzJ-0001YC-Ty for emacs-devel@gnu.org; Thu, 06 Nov 2014 20:44:57 +0100 Original-Received: from t876c.wpa.dal.ca ([134.190.135.108]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 06 Nov 2014 20:44:57 +0100 Original-Received: from nljlistbox2 by t876c.wpa.dal.ca with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 06 Nov 2014 20:44:57 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 30 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: t876c.wpa.dal.ca User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) Cancel-Lock: sha1:tjvarOI9GwTk272c7+eewvtuzUE= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:176478 Archived-At: At 14:00 -0400 on Thursday 2014-11-06, Wolfgang Jenkner wrote: > 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)))) Thanks Wolfgang, That works well. It's much better than my existing workarounds. I'll need to get it working on the right buffer and get it bound to a key combination, and then it will serve until a real solution emerges. Regards, N. Jackson