1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-06 06:20:55 -08:00

(array-mode): Use kill-all-local-variables and run-mode-hooks.

This commit is contained in:
Lute Kamstra 2005-05-26 12:16:05 +00:00
parent 21a88c56b3
commit e3e4b1f233

View file

@ -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))