From 8e5c7b90ee28002fa6b4b860d3c69719f865f19a Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Mon, 14 Nov 2005 22:19:28 +0000 Subject: [PATCH] (write-file): Refresh VC status. --- lisp/ChangeLog | 2 ++ lisp/files.el | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index ef5253d63a6..0fc0586b8f5 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,7 @@ 2005-11-14 Stefan Monnier + * 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. diff --git a/lisp/files.el b/lisp/files.el index c4273a859fb..202d24e09fc 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -2717,7 +2717,10 @@ Interactively, confirmation is required unless you supply a prefix argument." (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. -- 2.11.4.GIT