changeset 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 ec0621e2b94f
children 05f48d9c5aed
files lisp/array.el
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
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))