diff options
Diffstat (limited to 'lisp/array.el')
| -rw-r--r-- | lisp/array.el | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/lisp/array.el b/lisp/array.el index e60cbdfffc1..8c4f609e626 100644 --- a/lisp/array.el +++ b/lisp/array.el | |||
| @@ -800,7 +800,7 @@ Return COLUMN." | |||
| 800 | (put 'array-mode 'mode-class 'special) | 800 | (put 'array-mode 'mode-class 'special) |
| 801 | 801 | ||
| 802 | ;;;###autoload | 802 | ;;;###autoload |
| 803 | (defun array-mode () | 803 | (define-derived-mode array-mode fundamental-mode "Array" |
| 804 | "Major mode for editing arrays. | 804 | "Major mode for editing arrays. |
| 805 | 805 | ||
| 806 | Array mode is a specialized mode for editing arrays. An array is | 806 | Array mode is a specialized mode for editing arrays. An array is |
| @@ -863,9 +863,6 @@ take a numeric prefix argument): | |||
| 863 | \\[array-display-local-variables] Display the current values of local variables. | 863 | \\[array-display-local-variables] Display the current values of local variables. |
| 864 | 864 | ||
| 865 | Entering array mode calls the function `array-mode-hook'." | 865 | Entering array mode calls the function `array-mode-hook'." |
| 866 | |||
| 867 | (interactive) | ||
| 868 | (kill-all-local-variables) | ||
| 869 | (make-local-variable 'array-buffer-line) | 866 | (make-local-variable 'array-buffer-line) |
| 870 | (make-local-variable 'array-buffer-column) | 867 | (make-local-variable 'array-buffer-column) |
| 871 | (make-local-variable 'array-row) | 868 | (make-local-variable 'array-row) |
| @@ -888,13 +885,9 @@ Entering array mode calls the function `array-mode-hook'." | |||
| 888 | (+ (floor (1- array-max-column) array-columns-per-line) | 885 | (+ (floor (1- array-max-column) array-columns-per-line) |
| 889 | (if array-rows-numbered 2 1))) | 886 | (if array-rows-numbered 2 1))) |
| 890 | (message "") | 887 | (message "") |
| 891 | (setq major-mode 'array-mode) | ||
| 892 | (setq mode-name "Array") | ||
| 893 | (force-mode-line-update) | 888 | (force-mode-line-update) |
| 894 | (set (make-local-variable 'truncate-lines) t) | 889 | (set (make-local-variable 'truncate-lines) t) |
| 895 | (setq overwrite-mode 'overwrite-mode-textual) | 890 | (setq overwrite-mode 'overwrite-mode-textual)) |
| 896 | (use-local-map array-mode-map) | ||
| 897 | (run-mode-hooks 'array-mode-hook)) | ||
| 898 | 891 | ||
| 899 | 892 | ||
| 900 | 893 | ||