diff lisp/array.el @ 62715:d07ea6e0706b

(array-mode): Use kill-all-local-variables and run-mode-hooks.
author Lute Kamstra <lute@gnu.org>
date Thu, 26 May 2005 12:16:05 +0000
parents 2c228409c44d
children 6fb026ad601f 01137c1fdbe9
line wrap: on
line diff
--- a/lisp/array.el	Thu May 26 12:11:10 2005 +0000
+++ b/lisp/array.el	Thu May 26 12:16:05 2005 +0000
@@ -872,6 +872,7 @@
 Entering array mode calls the function `array-mode-hook'."
 
   (interactive)
+  (kill-all-local-variables)
   ;; Number of rows in the array.
   (make-local-variable 'array-max-row)
   ;; Number of columns in the array.
@@ -907,7 +908,7 @@
   (setq truncate-lines t)
   (setq overwrite-mode 'overwrite-mode-textual)
   (use-local-map array-mode-map)
-  (run-hooks 'array-mode-hook))
+  (run-mode-hooks 'array-mode-hook))