# HG changeset patch # User Dan Nicolaescu # Date 1211578712 0 # Node ID 4d7bc13901966fe5ed21026c4016871edc6ae84d # Parent 1e9eb6106f5acd4863aeb68c80a1d1b700c18aef (vc-delete-file): Make sure the buffer is deleted and vc-dir buffers are updated. diff -r 1e9eb6106f5a -r 4d7bc1390196 lisp/ChangeLog --- a/lisp/ChangeLog Fri May 23 20:59:51 2008 +0000 +++ b/lisp/ChangeLog Fri May 23 21:38:32 2008 +0000 @@ -1,3 +1,8 @@ +2008-05-23 Dan Nicolaescu + + * vc.el (vc-delete-file): Make sure the buffer is deleted and + vc-dir buffers are updated. + 2008-05-23 Stefan Monnier * vc.el (vc-delete-file): Don't try to resynch the buffer. diff -r 1e9eb6106f5a -r 4d7bc1390196 lisp/vc.el --- a/lisp/vc.el Fri May 23 20:59:51 2008 +0000 +++ b/lisp/vc.el Fri May 23 21:38:32 2008 +0000 @@ -2445,10 +2445,9 @@ (when (file-exists-p file) (delete-file file)) ;; Forget what VC knew about the file. (vc-file-clearprops file) - ;; Since we've deleted the file and we've made sure the buffer had no - ;; unsaved changes, we can kill the buffer. Much easier than trying to - ;; properly refresh its VC state. - (when buf (kill-buffer buf)))) + ;; Make sure the buffer is deleted and the *vc-dir* buffers are + ;; updated after this. + (vc-resynch-buffer file nil t))) ;;;###autoload (defun vc-rename-file (old new)