# HG changeset patch # User Karl Heuer # Date 798848541 0 # Node ID 63215d2a1e3f70ba37f10cffa7484b2991eed8ca # Parent 8ff50a0715e168a3fb5a085ce7372abba0a00d0d (toggle-read-only, rename-uniquely): Use force-mode-line-update. diff -r 8ff50a0715e1 -r 63215d2a1e3f lisp/files.el --- a/lisp/files.el Tue Apr 25 22:21:29 1995 +0000 +++ b/lisp/files.el Tue Apr 25 22:22:21 1995 +0000 @@ -1836,8 +1836,7 @@ (if (null arg) (not buffer-read-only) (> (prefix-numeric-value arg) 0))) - ;; Force mode-line redisplay - (set-buffer-modified-p (buffer-modified-p))) + (force-mode-line-update)) (defun insert-file (filename) "Insert contents of file FILENAME into buffer after point. @@ -1896,7 +1895,7 @@ (name (buffer-name new-buf))) (kill-buffer new-buf) (rename-buffer name) - (set-buffer-modified-p (buffer-modified-p))))) ; force mode line update + (force-mode-line-update)))) (defun make-directory (dir &optional parents) "Create the directory DIR and any nonexistent parent dirs.