changeset 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 0d1a48b1ca68
children 0c94929d0a7d
files lisp/calendar/todo-mode.el
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
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)