# HG changeset patch # User Stefan Monnier # Date 972510309 0 # Node ID 78063b725d3f99dafb0cc478e183894eca0193c1 # Parent 4837f99670c693a55e8439ffb09e0d89e3601095 (vc-version-other-window): Bind `file'. diff -r 4837f99670c6 -r 78063b725d3f lisp/vc.el --- a/lisp/vc.el Wed Oct 25 19:10:39 2000 +0000 +++ b/lisp/vc.el Wed Oct 25 21:45:09 2000 +0000 @@ -5,7 +5,7 @@ ;; Author: FSF (see below for full credits) ;; Maintainer: Andre Spiegel -;; $Id: vc.el,v 1.280 2000/10/10 01:25:40 ttn Exp $ +;; $Id: vc.el,v 1.281 2000/10/22 15:37:51 spiegel Exp $ ;; This file is part of GNU Emacs. @@ -1570,15 +1570,16 @@ If `F.~REV~' already exists, it is used instead of being re-created." (interactive "sVersion to visit (default is workfile version): ") (vc-ensure-vc-buffer) - (let* ((version (if (string-equal rev "") - (vc-workfile-version buffer-file-name) + (let* ((file buffer-file-name) + (version (if (string-equal rev "") + (vc-workfile-version file) rev)) (automatic-backup (vc-version-backup-file-name file version)) (manual-backup (vc-version-backup-file-name file version 'manual))) (unless (file-exists-p manual-backup) (if (file-exists-p automatic-backup) (copy-file automatic-backup manual-backup nil 'keep-date) - (vc-call checkout buffer-file-name nil version manual-backup))) + (vc-call checkout file nil version manual-backup))) (find-file-other-window manual-backup))) ;; Header-insertion code