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: Calendar's buffer hooks (was trailing whitespace visible on some buffers) Date: Tue, 17 Sep 2002 14:30:45 +0400 Sender: help-gnu-emacs-admin@gnu.org Message-ID: <15751.1109.821361.632357@localhost.localdomain> References: <15747.1342.200552.59394@localhost.localdomain> 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 1032257770 21033 127.0.0.1 (17 Sep 2002 10:16:10 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 17 Sep 2002 10:16:10 +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 17rFOq-0005Sz-00 for ; Tue, 17 Sep 2002 12:16:08 +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 17rFOy-00014S-00; Tue, 17 Sep 2002 06:16:16 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17rFOC-0000WG-00 for help-gnu-emacs@gnu.org; Tue, 17 Sep 2002 06:15:28 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17rFNg-0000Uu-00 for help-gnu-emacs@gnu.org; Tue, 17 Sep 2002 06:15:27 -0400 Original-Received: from relay.wplus.net ([195.131.52.142]) by monty-python.gnu.org with esmtp (Exim 4.10) id 17rFNf-0000Uq-00 for help-gnu-emacs@gnu.org; Tue, 17 Sep 2002 06:14:55 -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 OAA20862 for ; Tue, 17 Sep 2002 14:14:53 +0400 (MSD) Original-Received: by emaile.wplus.net with scanned-ok (WebPlus antispam mailer ) id 17rFNd-000KFH-00 for help-gnu-emacs@gnu.org; Tue, 17 Sep 2002 14:14:53 +0400 Original-Received: from [195.131.95.168] (helo=localhost.localdomain) by emaile.wplus.net with esmtp (WebPlus antispam mailer ) id 17rFNY-000KDt-00; Tue, 17 Sep 2002 14:14:49 +0400 Original-To: "Luis O. Silva" In-Reply-To: <15747.1342.200552.59394@localhost.localdomain> X-Mailer: VM 6.97 under Emacs 21.1.1 X-Virus-Scanned: by AVP (http://www.avp.ru/) X-IP: 195.131.95.168 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:1525 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:1525 Dear Emacs community, On Sat, 14 Sep 2002 13:45:34 +0400, I wrote: Luis> I want to set the buffer-local variable Luis> `show-trailing-whitespace' to `t' for all buffers Luis> except for *info*, *diary*, *calendar*, and *mail Luis> presentation*. In the emacs node of info I found how Luis> to set local variables to different _modes_ using Luis> "hooks", but I don't know how to set buffer-local Luis> variables to concrete buffers. With your help I've almost solved the problem, I just need to know the name of the hooks that take place after the *calendar* buffer is created. I've tried the following variants: (after making visible whitespaces globally) 1. (add-hook 'today-visible-calendar-hook (lambda () (setq show-trailing-whitespace nil))) ==> the whitespaces disappear only when I scroll the calendar or hit "d" or "h". 2. (add-hook 'calendar-load-hook (lambda () (setq show-trailing-whitespace nil))) ==> whitespaces don't disappear. Any suggestions? Thanks in advance -- Luis Octavio Silva P. St. Petersburg State University. 66/3 Botanicheskaya St., Apt.119/2 Stary Peterhof St. Petersburg, Russia.