X-Git-Url: http://git.hcoop.net/bpt/emacs.git/blobdiff_plain/9cd77daade4e206037b9aee8e4a035e1d70b1f10..fb4ee5cdb135bc44c4a29e546e716c7c1639b029:/lisp/array.el diff --git a/lisp/array.el b/lisp/array.el index 0730e1e7d0..fab1c1ec59 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." @@ -884,13 +885,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))