]> git.eshelyaron.com Git - emacs.git/commitdiff
(vc-log-info): Don't switch to the *vc* buffer before running
authorRoland McGrath <roland@gnu.org>
Mon, 20 Feb 1995 09:39:26 +0000 (09:39 +0000)
committerRoland McGrath <roland@gnu.org>
Mon, 20 Feb 1995 09:39:26 +0000 (09:39 +0000)
vc-do-command, because that would change its default-directory.

lisp/vc.el

index 8972849cb9a3e99fef5bfc7d82469972527ec75a..1950306e002c36a39ab1d120f4bc246109e72300 100644 (file)
@@ -1508,8 +1508,10 @@ From a program, any arguments are passed to the `rcs2log' script."
   ;; Search for information in log program output
   (if (and file (file-exists-p file))
       (save-excursion
-       (set-buffer (get-buffer-create "*vc*"))
+       ;; Don't switch to the *vc* buffer before running vc-do-command,
+       ;; because that would change its default-directory.
        (apply 'vc-do-command 0 command file last flags)
+       (set-buffer (get-buffer "*vc*"))
        (set-buffer-modified-p nil)
        (prog1
            (vc-parse-buffer patterns file properties)