From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Simon Hooper Newsgroups: gmane.emacs.help Subject: Re: Calendar's buffer hooks (was trailing whitespace visible on some buffers) Date: Tue, 17 Sep 2002 10:49:06 +0000 (UTC) Organization: Cable & Wireless INS Posting Sender: help-gnu-emacs-admin@gnu.org Message-ID: References: <15747.1342.200552.59394@localhost.localdomain> Reply-To: stimpy@totalise.co.uk NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1032260761 27747 127.0.0.1 (17 Sep 2002 11:06:01 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 17 Sep 2002 11:06:01 +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 17rGB5-0007DM-00 for ; Tue, 17 Sep 2002 13:06:00 +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 17rGBL-0007mu-00; Tue, 17 Sep 2002 07:06:15 -0400 Original-Path: shelby.stanford.edu!nntp.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!news.stealth.net!news.stealth.net!194.168.222.61.MISMATCH!newspeer1-gui.server.ntli.net!ntli.net!peernews!peer.cwci.net!news3.cwci.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 45 Original-NNTP-Posting-Host: 194.205.160.226 Original-X-Trace: reader-00.news.insnet.cw.net 1032259746 24732 194.205.160.226 (17 Sep 2002 10:49:06 GMT) Original-X-Complaints-To: abuse@insnet.net Original-NNTP-Posting-Date: Tue, 17 Sep 2002 10:49:06 +0000 (UTC) User-Agent: slrn/0.9.7.4 (Linux) Original-Xref: nntp.stanford.edu gnu.emacs.help:104972 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:1527 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:1527 In article , Luis O. Silva wrote: > .....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. I've been trying to do the same thing for a while. Unfortunately my knowledge of lisp is nonexistent :( I use the diary and calendar and have been using the following in my ~/.emacs (defun simon-calendar-function () (turn-off-auto-fill) (turn-off-filladapt-mode) (flyspell-mode nil) (setq show-trailing-whitespace nil) ) (add-hook 'calendar-mode-hook 'simon-calendar-function) (add-hook 'diary-hook 'simon-calendar-function) This works fine for the diary, but I still have the white space markers in my calendar. I have also tried using the calendar-load-hook. Any ideas? Simon. -- Simon Hooper