From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Karl Eichwalder Newsgroups: gmane.emacs.help Subject: Re: Calendar's buffer hooks Date: Wed, 18 Sep 2002 10:36:32 +0200 Organization: The Moon On Earth Sender: help-gnu-emacs-admin@gnu.org Message-ID: References: <15747.1342.200552.59394@localhost.localdomain> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1032339958 25906 127.0.0.1 (18 Sep 2002 09:05:58 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 18 Sep 2002 09:05:58 +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 17ramT-0006jh-00 for ; Wed, 18 Sep 2002 11:05:57 +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 17ramm-0006oV-00; Wed, 18 Sep 2002 05:06:16 -0400 Original-Path: shelby.stanford.edu!nntp.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-han1.dfn.de!news-nue1.dfn.de!uni-erlangen.de!elvis.franken.de!chico.franken.de!news.franken.de!gnu.franken.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 27 Original-NNTP-Posting-Host: tux.gnu.franken.de Original-X-Trace: tux.gnu.franken.de 1032338192 16194 192.168.1.3 (18 Sep 2002 08:36:32 GMT) Original-X-Complaints-To: newsadm@gnu.franken.de Original-NNTP-Posting-Date: Wed, 18 Sep 2002 08:36:32 +0000 (UTC) Mail-copies-to: never User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50 (i686-pc-linux-gnu) Cancel-Lock: sha1:UPn5XEVSKMKR/vxH6QBUc9h09NE= Original-Xref: nntp.stanford.edu gnu.emacs.help:105017 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:1572 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:1572 Simon Hooper writes: > (add-hook 'calendar-mode-hook 'simon-calendar-function) calendar-mode-hook isn't defined. Try: (add-hook 'initial-calendar-window-hook 'simon-calendar-function) I just found it's documented in the manual: File: elisp, Node: Calendar Customizing, Next: Holiday Customizing, Up: Calendar Customizing the Calendar [...] Starting the calendar runs the normal hook `initial-calendar-window-hook'. Recomputation of the calendar display does not run this hook. But if you leave the calendar with the `q' command and reenter it, the hook runs again. -- ke@suse.de (work) / keichwa@gmx.net (home): | http://www.suse.de/~ke/ | ,__o Free Translation Project: | _-\_<, http://www.iro.umontreal.ca/contrib/po/HTML/ | (*)/'(*)