Mercurial > emacs
comparison lisp/files.el @ 66870:5b3373426595
(write-file): Refresh VC status.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Mon, 14 Nov 2005 22:19:28 +0000 |
parents | 67bd44c70980 |
children | af8e4600d870 03934708f1e9 |
comparison
equal
deleted
inserted
replaced
66869:cfc510b6c9e6 | 66870:5b3373426595 |
---|---|
2715 (set-buffer-modified-p t) | 2715 (set-buffer-modified-p t) |
2716 ;; Make buffer writable if file is writable. | 2716 ;; Make buffer writable if file is writable. |
2717 (and buffer-file-name | 2717 (and buffer-file-name |
2718 (file-writable-p buffer-file-name) | 2718 (file-writable-p buffer-file-name) |
2719 (setq buffer-read-only nil)) | 2719 (setq buffer-read-only nil)) |
2720 (save-buffer)) | 2720 (save-buffer) |
2721 ;; It's likely that the VC status at the new location is different from | |
2722 ;; the one at the old location. | |
2723 (vc-find-file-hook)) | |
2721 | 2724 |
2722 (defun backup-buffer () | 2725 (defun backup-buffer () |
2723 "Make a backup of the disk file visited by the current buffer, if appropriate. | 2726 "Make a backup of the disk file visited by the current buffer, if appropriate. |
2724 This is normally done before saving the buffer the first time. | 2727 This is normally done before saving the buffer the first time. |
2725 | 2728 |