diff options
| author | Richard M. Stallman | 1994-09-24 01:08:40 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-09-24 01:08:40 +0000 |
| commit | 3e3da61f356e315476fdb788cc8561034772fc2f (patch) | |
| tree | 6b5199d34303878990deacab9d08603b6b35f24b | |
| parent | 29fc1ce99358a577c8c0fde7eaebc0f2958166b6 (diff) | |
| download | emacs-3e3da61f356e315476fdb788cc8561034772fc2f.tar.gz emacs-3e3da61f356e315476fdb788cc8561034772fc2f.zip | |
(vc-finish-steal): Do vc-resynch-window in the right buffer.
(vc-steal-lock): Delete spurious reference to `configuration'.
| -rw-r--r-- | lisp/vc.el | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lisp/vc.el b/lisp/vc.el index 77101d1615d..7d6f0212fa1 100644 --- a/lisp/vc.el +++ b/lisp/vc.el | |||
| @@ -599,7 +599,7 @@ level to check it in under. COMMENT, if specified, is the checkin comment." | |||
| 599 | (mail-mode) | 599 | (mail-mode) |
| 600 | (erase-buffer) | 600 | (erase-buffer) |
| 601 | (mail-setup owner (format "Stolen lock on %s" file-description) nil nil nil | 601 | (mail-setup owner (format "Stolen lock on %s" file-description) nil nil nil |
| 602 | (list (list 'vc-finish-steal file rev configuration))) | 602 | (list (list 'vc-finish-steal file rev))) |
| 603 | (goto-char (point-max)) | 603 | (goto-char (point-max)) |
| 604 | (insert | 604 | (insert |
| 605 | (format "I stole the lock on %s, " file-description) | 605 | (format "I stole the lock on %s, " file-description) |
| @@ -610,7 +610,10 @@ level to check it in under. COMMENT, if specified, is the checkin comment." | |||
| 610 | ;; This is called when the notification has been sent. | 610 | ;; This is called when the notification has been sent. |
| 611 | (defun vc-finish-steal (file version) | 611 | (defun vc-finish-steal (file version) |
| 612 | (vc-backend-steal file version) | 612 | (vc-backend-steal file version) |
| 613 | (vc-resynch-window file t t)) | 613 | (if (get-file-buffer file) |
| 614 | (save-excursion | ||
| 615 | (set-buffer (get-buffer-file file)) | ||
| 616 | (vc-resynch-window file t t)))) | ||
| 614 | 617 | ||
| 615 | (defun vc-checkin (file &optional rev comment) | 618 | (defun vc-checkin (file &optional rev comment) |
| 616 | "Check in the file specified by FILE. | 619 | "Check in the file specified by FILE. |