X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/9cd77daade4e206037b9aee8e4a035e1d70b1f10..1b33e237605724471fa486643252702feca7a6e1:/lisp/array.el diff --git a/lisp/array.el b/lisp/array.el index 0730e1e7d0..a172c52a08 100644 --- a/lisp/array.el +++ b/lisp/array.el @@ -19,8 +19,9 @@ ;; GNU General Public License for more details. ;; You should have received a copy of the GNU General Public License -;; along with GNU Emacs; see the file COPYING. If not, write to -;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. +;; along with GNU Emacs; see the file COPYING. If not, write to the +;; Free Software Foundation, Inc., 59 Temple Place - Suite 330, +;; Boston, MA 02111-1307, USA. ;;; Commentary: @@ -102,9 +103,9 @@ to the optional arguments A-ROW and A-COLUMN." (interactive) (let ((buffer-line (current-line)) (buffer-column (current-column))) - (message (format "Array row: %s Array column: %s" - (prin1-to-string (array-current-row)) - (prin1-to-string (array-current-column)))))) + (message "Array row: %s Array column: %s" + (prin1-to-string (array-current-row)) + (prin1-to-string (array-current-column))))) (defun array-display-local-variables () "Display the current state of the local variables in the minibuffer." @@ -789,6 +790,7 @@ Return COLUMN." (put 'array-mode 'mode-class 'special) +;;;###autoload (defun array-mode () "Major mode for editing arrays. @@ -884,13 +886,10 @@ Entering array mode calls the function `array-mode-hook'." (array-init-local-variables) (setq major-mode 'array-mode) (setq mode-name "Array") - ;; Update mode-line. - (progn (save-excursion (set-buffer (other-buffer))) - (set-buffer-modified-p (buffer-modified-p)) - (sit-for 0)) + (force-mode-line-update) (make-variable-buffer-local 'truncate-lines) (setq truncate-lines t) - (setq overwrite-mode t) + (setq overwrite-mode 'overwrite-mode-textual) (use-local-map array-mode-map) (run-hooks 'array-mode-hook))