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 12:47:14 -0400 Message-ID: <87a944cm3x.fsf@moondust.localdomain> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1415293865 8943 80.91.229.3 (6 Nov 2014 17:11:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 6 Nov 2014 17:11:05 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 06 18:10:58 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 1XmQaI-0007p4-Gs for ged-emacs-devel@m.gmane.org; Thu, 06 Nov 2014 18:10:58 +0100 Original-Received: from localhost ([::1]:55159 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XmQaI-0007rR-1Q for ged-emacs-devel@m.gmane.org; Thu, 06 Nov 2014 12:10:58 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33786) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XmQZc-0007go-Az for emacs-devel@gnu.org; Thu, 06 Nov 2014 12:10:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XmQZT-0008Ao-Rx for emacs-devel@gnu.org; Thu, 06 Nov 2014 12:10:16 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:56729) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XmQZT-0008A5-Ln for emacs-devel@gnu.org; Thu, 06 Nov 2014 12:10:07 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XmQZP-0006z9-Ra for emacs-devel@gnu.org; Thu, 06 Nov 2014 18:10:03 +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 18:10:03 +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 18:10:03 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 50 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:s9lw/p+PGWwMi8rcoYenag5s618= 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:176463 Archived-At: At 12:43 -0400 on Tuesday 2014-11-04, Richard Stallman wrote: > M-x font-lock-mode will turn off colorization, but it's not a name > that will come to a user's mind very easily. How about making > colorize-mode an alias for font-lock-mode? > > Also, how about putting it in the Options menu? I would be all for an easy/quick way to toggle "colourisation" on those occasions when my buffer text is unreadable, but I find that toggling off font-lock-mode does not help (on Emacs 24.4). 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. To see the text, I have come up with three strategies, all of them annoying: 1. Turn my display brightness all the way up. (This will allow me make out a few words if the ambient light is dim.) 2. Select the text so that it is "highlighted". 3. Use (gnus-article-de-quoted-unreadable) to display normal white text on a normal black background. After reading this thread, today I tried toggling off font-lock-mode (and global-font-lock-mode) in an unreadable HTML mail buffer to see if that provides a better solution. However it seems to have no effect whatsoever on how the buffer is displayed. So providing a more intuitive alias for it, or putting it on the menus, would not be helpful (at least in my case). It would be very nice to have the option of turning on an auto-contrast function that would automatically adjust foreground or background colour whenever they are too similar, along with a way for the user to specify how similar is too similar. This would minimise (or eliminate) the need to turn off colourisation due to unreadable text. Regards, N. Jackson [1] I use the "wheatgrass" colour theme (not for any particular merits on its part, but simply because, when I iterated through the built-in colour themes after installing Emacs 24, it was the first one that seemed to have things about right). [2] Gnus v5.13