unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* cal-x.el/diary-lib.el diary-mode-hook
@ 2008-05-15  9:52 Karl Chen
  2008-05-15 14:52 ` Stefan Monnier
  0 siblings, 1 reply; 4+ messages in thread
From: Karl Chen @ 2008-05-15  9:52 UTC (permalink / raw)
  To: emacs-devel


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






^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-05-17 20:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-15  9:52 cal-x.el/diary-lib.el diary-mode-hook Karl Chen
2008-05-15 14:52 ` Stefan Monnier
2008-05-15 19:28   ` Karl Chen
2008-05-17 20:24     ` Glenn Morris

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).