diff lisp/calendar/todo-mode.el @ 62756:845536eca3d9

(todo-mode): Use kill-all-local-variables and run-mode-hooks.
author Lute Kamstra <lute@gnu.org>
date Thu, 26 May 2005 15:11:23 +0000
parents e8824c4f5f7e
children 411ad86176dd 63b7247f4be6 01137c1fdbe9
line wrap: on
line diff
--- a/lisp/calendar/todo-mode.el	Thu May 26 15:03:29 2005 +0000
+++ b/lisp/calendar/todo-mode.el	Thu May 26 15:11:23 2005 +0000
@@ -904,11 +904,12 @@
 
 \\{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)