summaryrefslogtreecommitdiff
path: root/lisp/array.el
diff options
context:
space:
mode:
authorLute Kamstra <lute@gnu.org>2005-05-26 12:16:05 +0000
committerLute Kamstra <lute@gnu.org>2005-05-26 12:16:05 +0000
commitb03f1c23717023f27022a613b27a3fa9cd3c3b8d (patch)
treec2c15ae6065e808e677b51c8942029650ab429f6 /lisp/array.el
parent5ef9f5d2ed11c20766544dde7c7cea5ecc52b337 (diff)
downloademacs-b03f1c23717023f27022a613b27a3fa9cd3c3b8d.tar.gz
(array-mode): Use kill-all-local-variables and run-mode-hooks.
Diffstat (limited to 'lisp/array.el')
-rw-r--r--lisp/array.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/array.el b/lisp/array.el
index f65f14ac550..2f270d0f086 100644
--- a/lisp/array.el
+++ b/lisp/array.el
@@ -872,6 +872,7 @@ take a numeric prefix argument):
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 @@ Entering array mode calls the function `array-mode-hook'."
(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))