aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl Heuer1995-04-25 22:22:21 +0000
committerKarl Heuer1995-04-25 22:22:21 +0000
commit3941fe2c64d493076c590c17790f2f5d159ac6e7 (patch)
treeef609d23734deefa3c01aee2fbba6508da145827
parent2bcf8edbecab6dc968313cb5b0b50304fad287d5 (diff)
downloademacs-3941fe2c64d493076c590c17790f2f5d159ac6e7.tar.gz
emacs-3941fe2c64d493076c590c17790f2f5d159ac6e7.zip
(toggle-read-only, rename-uniquely): Use force-mode-line-update.
-rw-r--r--lisp/files.el5
1 files changed, 2 insertions, 3 deletions
diff --git a/lisp/files.el b/lisp/files.el
index 13412aa8b6e..2778fdd6042 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -1836,8 +1836,7 @@ With arg, set read-only iff arg is positive."
1836 (if (null arg) 1836 (if (null arg)
1837 (not buffer-read-only) 1837 (not buffer-read-only)
1838 (> (prefix-numeric-value arg) 0))) 1838 (> (prefix-numeric-value arg) 0)))
1839 ;; Force mode-line redisplay 1839 (force-mode-line-update))
1840 (set-buffer-modified-p (buffer-modified-p)))
1841 1840
1842(defun insert-file (filename) 1841(defun insert-file (filename)
1843 "Insert contents of file FILENAME into buffer after point. 1842 "Insert contents of file FILENAME into buffer after point.
@@ -1896,7 +1895,7 @@ or multiple mail buffers, etc."
1896 (name (buffer-name new-buf))) 1895 (name (buffer-name new-buf)))
1897 (kill-buffer new-buf) 1896 (kill-buffer new-buf)
1898 (rename-buffer name) 1897 (rename-buffer name)
1899 (set-buffer-modified-p (buffer-modified-p))))) ; force mode line update 1898 (force-mode-line-update))))
1900 1899
1901(defun make-directory (dir &optional parents) 1900(defun make-directory (dir &optional parents)
1902 "Create the directory DIR and any nonexistent parent dirs. 1901 "Create the directory DIR and any nonexistent parent dirs.