From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Edward O'Connor Newsgroups: gmane.emacs.help Subject: Re: trailing whitespace visible on some buffers Date: Sat, 14 Sep 2002 09:57:12 GMT Organization: RoadRunner - West Sender: help-gnu-emacs-admin@gnu.org Message-ID: References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1031997964 8569 127.0.0.1 (14 Sep 2002 10:06:04 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 14 Sep 2002 10:06:04 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17q9oP-0002Ds-00 for ; Sat, 14 Sep 2002 12:06:01 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17q9ob-00075X-00; Sat, 14 Sep 2002 06:06:13 -0400 Original-Path: shelby.stanford.edu!nntp.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-out.nuthinbutnews.com!propagator2-sterling!news-in-sterling.newsfeed.com!news-in.nuthinbutnews.com!cyclone1.gnilink.net!newsfeed.news2me.com!news-west.rr.com!cyclone.kc.rr.com!news.kc.rr.com!cyclone3.kc.rr.com!news3.kc.rr.com!twister.socal.rr.com.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 25 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Original-NNTP-Posting-Host: 24.161.188.252 Original-X-Complaints-To: abuse@rr.com Original-X-Trace: twister.socal.rr.com 1031997432 24.161.188.252 (Sat, 14 Sep 2002 02:57:12 PDT) Original-NNTP-Posting-Date: Sat, 14 Sep 2002 02:57:12 PDT Original-Xref: nntp.stanford.edu gnu.emacs.help:104909 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:1464 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:1464 > This is an elementary question, but I haven't found the solution > of my problem. > > I want to set the buffer-local variable > `show-trailing-whitespace' to `t' for all buffers (setq-default show-trailing-whitespace t) > except for *info*, *diary*, *calendar*, and *mail presentation*. (let ((hook (lambda () (setq show-trailing-whitespace nil)))) (mapc (lambda (var) (add-hook var hook)) '(info-mode-hook calendar-mode-hook diary-hook))) Untested. Sorry, I don't know what the *mail presentation* buffer is. HTH -- Edward O'Connor ted@oconnor.cx