changeset 10786:353416feba10

(vc-log-info): Don't switch to the *vc* buffer before running vc-do-command, because that would change its default-directory.
author Roland McGrath <roland@gnu.org>
date Mon, 20 Feb 1995 09:39:26 +0000
parents f3a45c2e57c2
children a5e881c047ce
files lisp/vc.el
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/vc.el	Sun Feb 19 19:12:17 1995 +0000
+++ b/lisp/vc.el	Mon Feb 20 09:39:26 1995 +0000
@@ -1508,8 +1508,10 @@
   ;; 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)