From 30d33965d03c899e3558a4ae715098d5803e771a Mon Sep 17 00:00:00 2001 From: Lute Kamstra Date: Thu, 26 May 2005 15:11:23 +0000 Subject: [PATCH] (todo-mode): Use kill-all-local-variables and run-mode-hooks. --- lisp/calendar/todo-mode.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- 2.39.5