(todo-mode): Use kill-all-local-variables and run-mode-hooks.
authorLute Kamstra <lute@gnu.org>
Thu, 26 May 2005 15:11:23 +0000 (15:11 +0000)
committerLute Kamstra <lute@gnu.org>
Thu, 26 May 2005 15:11:23 +0000 (15:11 +0000)
lisp/calendar/todo-mode.el

index 0caedee..132f423 100644 (file)
@@ -904,11 +904,12 @@ Number of entries for each category is given by `todo-print-priorities'."
 
 \\{todo-mode-map}"
   (interactive)
+  (kill-all-local-variables)
   (setq major-mode 'todo-mode)
   (setq mode-name "TODO")
   (use-local-map todo-mode-map)
   (easy-menu-add todo-menu)
-  (run-hooks 'todo-mode-hook))
+  (run-mode-hooks 'todo-mode-hook))
 
 (eval-when-compile
   (defvar date)