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: Calendar's buffer hooks Date: Thu, 19 Sep 2002 09:32:26 +0400 Sender: help-gnu-emacs-admin@gnu.org Message-ID: <15753.24938.525187.726221@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 1032412616 21994 127.0.0.1 (19 Sep 2002 05:16:56 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 19 Sep 2002 05:16:56 +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 17rtgM-0005ic-00 for ; Thu, 19 Sep 2002 07:16:54 +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 17rtgj-0003ZB-00; Thu, 19 Sep 2002 01:17:17 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17rtg1-0003Ur-00 for help-gnu-emacs@gnu.org; Thu, 19 Sep 2002 01:16:33 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17rtfx-0003TE-00 for help-gnu-emacs@gnu.org; Thu, 19 Sep 2002 01:16:31 -0400 Original-Received: from relay.wplus.net ([195.131.52.142]) by monty-python.gnu.org with esmtp (Exim 4.10) id 17rtfx-0003Si-00 for help-gnu-emacs@gnu.org; Thu, 19 Sep 2002 01:16:29 -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 JAA40409 for ; Thu, 19 Sep 2002 09:16:26 +0400 (MSD) Original-Received: by emaile.wplus.net with scanned-ok (WebPlus antispam mailer ) id 17rtfu-0003IY-00 for help-gnu-emacs@gnu.org; Thu, 19 Sep 2002 09:16:26 +0400 Original-Received: from [195.131.84.111] (helo=localhost.localdomain) by emaile.wplus.net with esmtp (WebPlus antispam mailer ) id 17rtft-0003IP-00; Thu, 19 Sep 2002 09:16:25 +0400 Original-To: Karl Eichwalder 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.84.111 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:1613 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:1613 Karl, On Wed, 18 Sep 2002 10:36:32 +0200, Karl Eichwalder writes: Karl> Simon Hooper writes: >> (add-hook 'calendar-mode-hook 'simon-calendar-function) Karl> calendar-mode-hook isn't defined. Try: Karl> (add-hook 'initial-calendar-window-hook Karl> 'simon-calendar-function) Karl> I just found it's documented in the manual: I don't know why but, when using `initial-calendar-window-hook' in the following: (setq-default show-trailing-whitespace t) ... ... (add-hook 'initial-calendar-window-hook (lambda () (setq show-trailing-whitespace nil))) the trailing whitespace disappears only partially (!!!???) and, after some event take place (or after some time --~30 sec.) (!!!???), it disappears completely. The result is similar to the one obtained using the hook: `today-visible-calendar-hook'. Could anybody explain why this delay happens? Thank you. luis -- Luis Octavio Silva P. St. Petersburg State University. 66/3 Botanicheskaya St., Apt.119/2 Stary Peterhof St. Petersburg, Russia.