diff lisp/play/landmark.el @ 62770:93e71f3dcd14

* play/5x5.el (5x5-mode): * play/decipher.el (decipher-mode, decipher-stats-mode): * play/gomoku.el (gomoku-mode): * play/snake.el (snake-mode): * play/solitaire.el (solitaire-mode): * play/tetris.el (tetris-mode): Use run-mode-hooks. * play/landmark.el (lm-mode): * play/mpuz.el (mpuz-mode): Use kill-all-local-variables and run-mode-hooks.
author Lute Kamstra <lute@gnu.org>
date Thu, 26 May 2005 15:26:09 +0000
parents eaa9acd9122c
children 18a818a2ee7c 01137c1fdbe9
line wrap: on
line diff
--- a/lisp/play/landmark.el	Thu May 26 15:24:51 2005 +0000
+++ b/lisp/play/landmark.el	Thu May 26 15:26:09 2005 +0000
@@ -248,6 +248,7 @@
 Entry to this mode calls the value of `lm-mode-hook' if that value
 is non-nil.  One interesting value is `turn-on-font-lock'."
   (interactive)
+  (kill-all-local-variables)
   (setq major-mode 'lm-mode
 	mode-name "Lm")
   (lm-display-statistics)
@@ -255,7 +256,7 @@
   (make-local-variable 'font-lock-defaults)
   (setq font-lock-defaults '(lm-font-lock-keywords t))
   (toggle-read-only t)
-  (run-hooks 'lm-mode-hook))
+  (run-mode-hooks 'lm-mode-hook))
 
 
 ;;;_ +  THE SCORE TABLE.