From: Lute Kamstra Date: Thu, 26 May 2005 15:11:23 +0000 (+0000) Subject: (todo-mode): Use kill-all-local-variables and run-mode-hooks. X-Git-Tag: emacs-pretest-22.0.90~9533 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=30d33965d03c899e3558a4ae715098d5803e771a;p=emacs.git (todo-mode): Use kill-all-local-variables and run-mode-hooks. --- diff --git a/lisp/calendar/todo-mode.el b/lisp/calendar/todo-mode.el index 0caedee7c8a..132f42369c6 100644 --- a/lisp/calendar/todo-mode.el +++ b/lisp/calendar/todo-mode.el @@ -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)