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.
(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))
\f
(defun backup-buffer ()
"Make a backup of the disk file visited by the current buffer, if appropriate.