From: Roland McGrath Date: Mon, 20 Feb 1995 09:39:26 +0000 (+0000) Subject: (vc-log-info): Don't switch to the *vc* buffer before running X-Git-Tag: emacs-19.34~5072 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=52110560e99487e7cc75bf1a924b10ea3cac0936;p=emacs.git (vc-log-info): Don't switch to the *vc* buffer before running vc-do-command, because that would change its default-directory. --- 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)