changeset 9045:989c8e13c115

(vc-finish-steal): Do vc-resynch-window in the right buffer. (vc-steal-lock): Delete spurious reference to `configuration'.
author Richard M. Stallman <rms@gnu.org>
date Sat, 24 Sep 1994 01:08:40 +0000
parents 5ddb0e0adb08
children 09fb6d81f449
files lisp/vc.el
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/vc.el	Sat Sep 24 00:58:07 1994 +0000
+++ b/lisp/vc.el	Sat Sep 24 01:08:40 1994 +0000
@@ -599,7 +599,7 @@
     (mail-mode)
     (erase-buffer)
     (mail-setup owner (format "Stolen lock on %s" file-description) nil nil nil
-		(list (list 'vc-finish-steal file rev configuration)))
+		(list (list 'vc-finish-steal file rev)))
     (goto-char (point-max))
     (insert
      (format "I stole the lock on %s, " file-description)
@@ -610,7 +610,10 @@
 ;; This is called when the notification has been sent.
 (defun vc-finish-steal (file version)
   (vc-backend-steal file version)
-  (vc-resynch-window file t t))
+  (if (get-file-buffer file)
+      (save-excursion
+	(set-buffer (get-buffer-file file))
+	(vc-resynch-window file t t))))
 
 (defun vc-checkin (file &optional rev comment)
   "Check in the file specified by FILE.