]> git.eshelyaron.com Git - emacs.git/commitdiff
(picture-set-motion, picture-mode-exit): Use force-mode-line-update.
authorKarl Heuer <kwzh@gnu.org>
Tue, 25 Apr 1995 22:26:54 +0000 (22:26 +0000)
committerKarl Heuer <kwzh@gnu.org>
Tue, 25 Apr 1995 22:26:54 +0000 (22:26 +0000)
lisp/textmodes/picture.el

index 0fc0feabfd5d29e21073d7eed15633b11dad6ebf..ad69ddf282308b2ae6243693a741406b51c5f5df 100644 (file)
@@ -159,9 +159,7 @@ The mode line is updated to reflect the current direction."
        (format "Picture:%s"
                (car (nthcdr (+ 1 (% horiz 2) (* 3 (1+ (% vert 2))))
                             '(nw up ne left none right sw down se)))))
-  ;; Kludge - force the mode line to be updated.  Is there a better
-  ;; way to this?
-  (set-buffer-modified-p (buffer-modified-p))
+  (force-mode-line-update)
   (message ""))
 
 (defun picture-move ()
@@ -630,9 +628,7 @@ With no argument strips whitespace from end of every line in Picture buffer
     (setq major-mode picture-mode-old-major-mode)
     (kill-local-variable 'tab-stop-list)
     (setq truncate-lines picture-mode-old-truncate-lines)
-    ;; Kludge - force the mode line to be updated.  Is there a better
-    ;; way to do this?
-    (set-buffer-modified-p (buffer-modified-p))))
+    (force-mode-line-update)))
 
 (defun picture-clean ()
   "Eliminate whitespace at ends of lines."