1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-02-05 20:43:08 +00:00

(write-file): Refresh VC status.

This commit is contained in:
Stefan Monnier 2005-11-14 22:19:28 +00:00
parent 2f0e484649
commit 8e5c7b90ee
2 changed files with 6 additions and 1 deletions

View File

@ -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.

View File

@ -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.