Mercurial > emacs
changeset 11563:63215d2a1e3f
(toggle-read-only, rename-uniquely): Use force-mode-line-update.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Tue, 25 Apr 1995 22:22:21 +0000 |
parents | 8ff50a0715e1 |
children | 26d4ff74d4ab |
files | lisp/files.el |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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.