emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lisp/vc.el,v


From: Dan Nicolaescu
Subject: [Emacs-diffs] Changes to emacs/lisp/vc.el,v
Date: Fri, 23 May 2008 21:38:33 +0000

CVSROOT:        /cvsroot/emacs
Module name:    emacs
Changes by:     Dan Nicolaescu <dann>   08/05/23 21:38:32

Index: vc.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/vc.el,v
retrieving revision 1.673
retrieving revision 1.674
diff -u -b -r1.673 -r1.674
--- vc.el       23 May 2008 20:59:51 -0000      1.673
+++ vc.el       23 May 2008 21:38:32 -0000      1.674
@@ -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)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]