From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Luis O. Silva" Newsgroups: gmane.emacs.help Subject: Re: trailing whitespace visible on some buffers Date: Sat, 14 Sep 2002 16:46:41 +0400 Sender: help-gnu-emacs-admin@gnu.org Message-ID: <15747.12209.45457.329894@localhost.localdomain> References: Reply-To: "Luis O. Silva" NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1032006727 21114 127.0.0.1 (14 Sep 2002 12:32:07 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 14 Sep 2002 12:32:07 +0000 (UTC) Cc: help-gnu-emacs@gnu.org 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 17qC5l-0005UM-00 for ; Sat, 14 Sep 2002 14:32:05 +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 17qC5t-0003HV-00; Sat, 14 Sep 2002 08:32:13 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17qC5c-0003E5-00 for help-gnu-emacs@gnu.org; Sat, 14 Sep 2002 08:31:56 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17qC5W-0003D6-00 for help-gnu-emacs@gnu.org; Sat, 14 Sep 2002 08:31:54 -0400 Original-Received: from relay.wplus.net ([195.131.52.142]) by monty-python.gnu.org with esmtp (Exim 4.10) id 17qC4d-00035A-00 for help-gnu-emacs@gnu.org; Sat, 14 Sep 2002 08:31:50 -0400 X-Real-To: Original-Received: from emaile.wplus.net (email.wplus.net [195.131.52.155]) by relay.wplus.net (8.9.1/8.9.1/wplus.2) with ESMTP id QAA41160 for ; Sat, 14 Sep 2002 16:30:54 +0400 (MSD) Original-Received: by emaile.wplus.net with scanned-ok (WebPlus antispam mailer ) id 17qC4b-000Izm-00 for help-gnu-emacs@gnu.org; Sat, 14 Sep 2002 16:30:53 +0400 Original-Received: from [195.131.51.49] (helo=localhost.localdomain) by emaile.wplus.net with esmtp (WebPlus antispam mailer ) id 17qC4a-000Iz5-00; Sat, 14 Sep 2002 16:30:53 +0400 Original-To: "Edward O'Connor" Original-Newsgroups: gnu.emacs.help In-Reply-To: X-Mailer: VM 6.97 under Emacs 21.1.1 X-Virus-Scanned: by AVP (http://www.avp.ru/) X-IP: 195.131.51.49 X-From: silva@paloma.spbu.ru 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:1466 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:1466 Edward, Thank you for your message (Sat, 14 Sep 2002 09:57:12 GMT), in which, among other things, you wrote: >> 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 Edward> (setq-default show-trailing-whitespace t) >> except for *info*, *diary*, *calendar*, and *mail >> presentation*. Edward> (let ((hook (lambda () (setq Edward> show-trailing-whitespace nil)))) (mapc (lambda Edward> (var) (add-hook var hook)) '(info-mode-hook Edward> calendar-mode-hook diary-hook))) Edward> Untested. Well, I've tested it and, unfortunately, it doesn't work for me. I don't understand why it doesn't work, since your suggestion seems to be appropriate (given my limited knowledge of lisp). Edward> Sorry, I don't know what the *mail presentation* Edward> buffer is. I mean the presentation of my mail folders in VM (View Mail). Edward> HTH On the basis of your suggestion I made some tests without success. I always have to do `M-x set variable RET show-trailing-whitespace RET nil RET' once per buffer to do the trick. May be there are other suggestions? Thank you luis -- Luis Octavio Silva P. St. Petersburg State University. 66/3 Botanicheskaya St., Apt.119/2 Stary Peterhof St. Petersburg, Russia.