diff options
| author | Lute Kamstra | 2005-05-26 12:16:05 +0000 |
|---|---|---|
| committer | Lute Kamstra | 2005-05-26 12:16:05 +0000 |
| commit | e3e4b1f233ec3d7875ba8ceca8d534b148e15b49 (patch) | |
| tree | 20acf253681418104404604b7e04242c88720a6b /lisp/array.el | |
| parent | 21a88c56b3223ef150632d012e2003ebbaf7130e (diff) | |
| download | emacs-e3e4b1f233ec3d7875ba8ceca8d534b148e15b49.tar.gz emacs-e3e4b1f233ec3d7875ba8ceca8d534b148e15b49.zip | |
(array-mode): Use kill-all-local-variables and run-mode-hooks.
Diffstat (limited to 'lisp/array.el')
| -rw-r--r-- | lisp/array.el | 3 |
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): | |||
| 872 | Entering array mode calls the function `array-mode-hook'." | 872 | Entering array mode calls the function `array-mode-hook'." |
| 873 | 873 | ||
| 874 | (interactive) | 874 | (interactive) |
| 875 | (kill-all-local-variables) | ||
| 875 | ;; Number of rows in the array. | 876 | ;; Number of rows in the array. |
| 876 | (make-local-variable 'array-max-row) | 877 | (make-local-variable 'array-max-row) |
| 877 | ;; Number of columns in the array. | 878 | ;; Number of columns in the array. |
| @@ -907,7 +908,7 @@ Entering array mode calls the function `array-mode-hook'." | |||
| 907 | (setq truncate-lines t) | 908 | (setq truncate-lines t) |
| 908 | (setq overwrite-mode 'overwrite-mode-textual) | 909 | (setq overwrite-mode 'overwrite-mode-textual) |
| 909 | (use-local-map array-mode-map) | 910 | (use-local-map array-mode-map) |
| 910 | (run-hooks 'array-mode-hook)) | 911 | (run-mode-hooks 'array-mode-hook)) |
| 911 | 912 | ||
| 912 | 913 | ||
| 913 | 914 | ||