unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* calendar-mode-hook: Not defined as a hook variable?
@ 2007-03-25  1:24 T. V. Raman
  2007-03-26 19:27 ` Glenn Morris
  0 siblings, 1 reply; 2+ messages in thread
From: T. V. Raman @ 2007-03-25  1:24 UTC (permalink / raw)
  To: emacs-devel

The only occurrence of calendar-mode-hook at this point is in 
the call to run-mode-hooks 
grep calendar-mode-hook *.el
calendar.el:  (run-mode-hooks 'calendar-mode-hook))
18:23:08 labrador calendar $ 

 I tracked this down after noticing that adding a function to
 calendar-mode-hook had no apparent effect.

-- 
Best Regards,
--raman

      
Email:  raman@users.sf.net
WWW:    http://emacspeak.sf.net/raman/
AIM:    emacspeak       GTalk: tv.raman.tv@gmail.com
PGP:    http://emacspeak.sf.net/raman/raman-almaden.asc
Google: tv+raman 
IRC:    irc://irc.freenode.net/#emacs

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

* Re: calendar-mode-hook: Not defined as a hook variable?
  2007-03-25  1:24 calendar-mode-hook: Not defined as a hook variable? T. V. Raman
@ 2007-03-26 19:27 ` Glenn Morris
  0 siblings, 0 replies; 2+ messages in thread
From: Glenn Morris @ 2007-03-26 19:27 UTC (permalink / raw)
  To: raman; +Cc: emacs-devel

"T. V. Raman" wrote:

> The only occurrence of calendar-mode-hook at this point is in 
> the call to run-mode-hooks 

There is no need (other than aesthetics) for it to be defined
anywhere. It works as is. Eg try:

emacs -Q --eval "(progn (add-hook 'calendar-mode-hook '(lambda () (message \"FOO\") (sit-for 5))) (calendar))"

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

end of thread, other threads:[~2007-03-26 19:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-25  1:24 calendar-mode-hook: Not defined as a hook variable? T. V. Raman
2007-03-26 19:27 ` 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).