From 52110560e99487e7cc75bf1a924b10ea3cac0936 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Mon, 20 Feb 1995 09:39:26 +0000 Subject: [PATCH] (vc-log-info): Don't switch to the *vc* buffer before running vc-do-command, because that would change its default-directory. --- lisp/vc.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/vc.el b/lisp/vc.el index 8972849cb9a..1950306e002 100644 --- a/lisp/vc.el +++ b/lisp/vc.el @@ -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) -- 2.39.5