From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Karl Chen Newsgroups: gmane.emacs.devel Subject: cal-x.el/diary-lib.el diary-mode-hook Date: Thu, 15 May 2008 02:52:26 -0700 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1210845230 24398 80.91.229.12 (15 May 2008 09:53:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 15 May 2008 09:53:50 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu May 15 11:54:26 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JwaAB-0006Tw-8q for ged-emacs-devel@m.gmane.org; Thu, 15 May 2008 11:54:15 +0200 Original-Received: from localhost ([127.0.0.1]:52950 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jwa9R-0004V8-13 for ged-emacs-devel@m.gmane.org; Thu, 15 May 2008 05:53:29 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jwa8t-0004TL-Nd for emacs-devel@gnu.org; Thu, 15 May 2008 05:52:56 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jwa8r-0004SB-FN for emacs-devel@gnu.org; Thu, 15 May 2008 05:52:53 -0400 Original-Received: from [199.232.76.173] (port=36826 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jwa8o-0004Rb-L2 for emacs-devel@gnu.org; Thu, 15 May 2008 05:52:50 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:45266 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Jwa8o-0007gN-Ej for emacs-devel@gnu.org; Thu, 15 May 2008 05:52:50 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Jwa8d-0007nD-41 for emacs-devel@gnu.org; Thu, 15 May 2008 09:52:39 +0000 Original-Received: from roar.cs.berkeley.edu ([128.32.36.242]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 15 May 2008 09:52:39 +0000 Original-Received: from quarl by roar.cs.berkeley.edu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 15 May 2008 09:52:39 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 26 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: roar.cs.berkeley.edu X-Quack-Archive: 1 User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) Cancel-Lock: sha1:rXNyjoKmD2KLDbINXIrdK3+c78M= X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:97196 Archived-At: Hi, this is regarding calendar. I experience the symptoms in Emacs 22.2, and by inspecting CVS HEAD I suspect it is still affected despite the code having been significantly updated. emacs -q (setq diary-display-hook 'fancy-diary-display) (setq calendar-setup 'one-frame) (calendar) A couple places in calendar/*.el seem to assume that diary-mode-hook is a list of functions, e.g. when it uses ``(memq 'diary-fancy-display diary-display-hook)''. In my setup I had ``(setq diary-display-hook 'fancy-schedule-display-desk-calendar)'' [instead of add-hook or ``setq .. '(..)''] and this would trigger a type error. I realize the documentation for diary-display-hook says "list of functions", but a couple places in the code let-bind diary-display-hook to non-lists, and the documentation in 22.2 has sample code with non-lists. Thanks, Karl