(calendar-mode): Use run-mode-hooks.
authorLute Kamstra <lute@gnu.org>
Sun, 12 Jun 2005 09:00:57 +0000 (09:00 +0000)
committerLute Kamstra <lute@gnu.org>
Sun, 12 Jun 2005 09:00:57 +0000 (09:00 +0000)
lisp/ChangeLog
lisp/calendar/calendar.el

index aaa8115..10d61e8 100644 (file)
@@ -1,3 +1,7 @@
+2005-06-12  Lute Kamstra  <lute@gnu.org>
+
+       * calendar/calendar.el (calendar-mode): Use run-mode-hooks.
+
 2005-06-11  Luc Teirlinck  <teirllm@auburn.edu>
 
        * menu-bar.el (menu-bar-make-toggle): Remove stray backslash.
index 9731d53..0dee0da 100644 (file)
@@ -2447,7 +2447,6 @@ For a complete description, type \
 \\<calendar-mode-map>\\[calendar-goto-info-node] from within the calendar.
 
 \\<calendar-mode-map>\\{calendar-mode-map}"
-
   (kill-all-local-variables)
   (setq major-mode 'calendar-mode)
   (setq mode-name "Calendar")
@@ -2460,7 +2459,8 @@ For a complete description, type \
   (make-local-variable 'displayed-month);;  Month in middle of window.
   (make-local-variable 'displayed-year)        ;;  Year in middle of window.
   (set (make-local-variable 'font-lock-defaults)
-       '(calendar-font-lock-keywords t)))
+       '(calendar-font-lock-keywords t))
+  (run-mode-hooks 'calendar-mode-hook))
 
 (defun calendar-string-spread (strings char length)
   "Concatenate list of STRINGS separated with copies of CHAR to fill LENGTH.