From: Dan Nicolaescu Date: Fri, 23 May 2008 21:38:32 +0000 (+0000) Subject: (vc-delete-file): Make sure the buffer is deleted and X-Git-Tag: emacs-pretest-23.0.90~5322 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=64e5a32f1997d780862f9262f67e3246313303de;p=emacs.git (vc-delete-file): Make sure the buffer is deleted and vc-dir buffers are updated. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 14773bad083..1cc72d5b2df 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -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 --git a/lisp/vc.el b/lisp/vc.el index 345a7bf53c4..f5e332cd782 100644 --- a/lisp/vc.el +++ b/lisp/vc.el @@ -2445,10 +2445,9 @@ backend to NEW-BACKEND, and unregister FILE from the current backend. (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)