diff options
| author | Lute Kamstra | 2005-05-26 15:11:23 +0000 |
|---|---|---|
| committer | Lute Kamstra | 2005-05-26 15:11:23 +0000 |
| commit | 30d33965d03c899e3558a4ae715098d5803e771a (patch) | |
| tree | c218bc0d2d3dcdafff81a86c0c961f55f46a8693 | |
| parent | d0859c9ada9d335e0872f92e6e93bad3bdfa3114 (diff) | |
| download | emacs-30d33965d03c899e3558a4ae715098d5803e771a.tar.gz emacs-30d33965d03c899e3558a4ae715098d5803e771a.zip | |
(todo-mode): Use kill-all-local-variables and run-mode-hooks.
| -rw-r--r-- | lisp/calendar/todo-mode.el | 3 |
1 files changed, 2 insertions, 1 deletions
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'." | |||
| 904 | 904 | ||
| 905 | \\{todo-mode-map}" | 905 | \\{todo-mode-map}" |
| 906 | (interactive) | 906 | (interactive) |
| 907 | (kill-all-local-variables) | ||
| 907 | (setq major-mode 'todo-mode) | 908 | (setq major-mode 'todo-mode) |
| 908 | (setq mode-name "TODO") | 909 | (setq mode-name "TODO") |
| 909 | (use-local-map todo-mode-map) | 910 | (use-local-map todo-mode-map) |
| 910 | (easy-menu-add todo-menu) | 911 | (easy-menu-add todo-menu) |
| 911 | (run-hooks 'todo-mode-hook)) | 912 | (run-mode-hooks 'todo-mode-hook)) |
| 912 | 913 | ||
| 913 | (eval-when-compile | 914 | (eval-when-compile |
| 914 | (defvar date) | 915 | (defvar date) |