From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: kj Newsgroups: gmane.emacs.help Subject: Issues with whitespace.el's default color scheme Date: Thu, 25 Jul 2013 17:25:17 +0000 (UTC) Organization: none Message-ID: NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1374774104 29941 80.91.229.3 (25 Jul 2013 17:41:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 25 Jul 2013 17:41:44 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jul 25 19:41:47 2013 Return-path: Envelope-to: geh-help-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 1V2PXu-0000r9-DI for geh-help-gnu-emacs@m.gmane.org; Thu, 25 Jul 2013 19:41:46 +0200 Original-Received: from localhost ([::1]:55849 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V2PXu-0005cX-0Q for geh-help-gnu-emacs@m.gmane.org; Thu, 25 Jul 2013 13:41:46 -0400 Original-Path: usenet.stanford.edu!panix!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 54 Original-NNTP-Posting-Host: panix3.panix.com Original-X-Trace: reader1.panix.com 1374773117 10323 166.84.1.3 (25 Jul 2013 17:25:17 GMT) Original-X-Complaints-To: abuse@panix.com Original-NNTP-Posting-Date: Thu, 25 Jul 2013 17:25:17 +0000 (UTC) X-No-Confirm: yes User-Agent: nn/6.7.3 Original-Xref: usenet.stanford.edu gnu.emacs.help:200145 X-Mailman-Approved-At: Thu, 25 Jul 2013 13:41:35 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:92412 Archived-At: (My version of Emacs is 24.3.1, running in text mode, in a Terminal window, on OS X Lion.) While working on a plain tab-delimited file (in basic Fundamental-mode, no highlighting/coloring of any kind) I decided to give whitespace.el a try, to make empty cells visible. Therefore, I evaluated (require 'whitespace) and then ran M-x whitespace-mode. The whitespace characters have become visible, as advertised, but in addition, to my surprise, the whole buffer has been colorized. Now *all* the characters, not just those for whitespace, are shown with new foreground and background colors. This means that now the buffer appears in 3 colors: the new foreground and background colors, plus the original background color (for the locations on the screen where there are no characters). Unfortunately, I find this new color scheme too disturbing to work with. (And here, by "the new color scheme", I refer not only to two new additional colors, but also to the fact that a screen location's background color differs depending on whether it shows a character or not.) I would like to return the foreground and background colors to their original values (which, BTW, I did not set explicitly: I have been using the colors inherited by the Emacs session from the Terminal window). More precisely, 1. for non-whitespace characters, I want their foreground and background colors to be *inherited* from whatever color they have under the buffer's major mode when whitespace-mode is not active. 2. for whitespace characters, I want the foreground and background colors to be inherited from the buffer's major mode's color scheme for unhighlighted characters. I've have not been able to find my bearings in the documentation page and source code for whitespace.el. If anyone knows how to do this, or has any other helpful suggestions, please let me know. TIA! kj