Mercurial > emacs
changeset 66870:5b3373426595
(write-file): Refresh VC status.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Mon, 14 Nov 2005 22:19:28 +0000 |
parents | cfc510b6c9e6 |
children | 17486c85326e |
files | lisp/ChangeLog lisp/files.el |
diffstat | 2 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/ChangeLog Mon Nov 14 22:14:23 2005 +0000 +++ b/lisp/ChangeLog Mon Nov 14 22:19:28 2005 +0000 @@ -1,5 +1,7 @@ 2005-11-14 Stefan Monnier <monnier@iro.umontreal.ca> + * files.el (write-file): Refresh VC status. + * calendar/diary-lib.el (diary-list-entries, diary-show-all-entries) (mark-diary-entries, make-diary-entry): Check default-major-mode rather than fundamental-mode to see if the mode was set.
--- a/lisp/files.el Mon Nov 14 22:14:23 2005 +0000 +++ b/lisp/files.el Mon Nov 14 22:19:28 2005 +0000 @@ -2717,7 +2717,10 @@ (and buffer-file-name (file-writable-p buffer-file-name) (setq buffer-read-only nil)) - (save-buffer)) + (save-buffer) + ;; It's likely that the VC status at the new location is different from + ;; the one at the old location. + (vc-find-file-hook)) (defun backup-buffer () "Make a backup of the disk file visited by the current buffer, if appropriate.