From b03f1c23717023f27022a613b27a3fa9cd3c3b8d Mon Sep 17 00:00:00 2001 From: Lute Kamstra Date: Thu, 26 May 2005 12:16:05 +0000 Subject: (array-mode): Use kill-all-local-variables and run-mode-hooks. --- lisp/array.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lisp/array.el') 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)) -- cgit v1.2.1