diff options
| author | Roland McGrath | 1995-02-20 09:39:26 +0000 |
|---|---|---|
| committer | Roland McGrath | 1995-02-20 09:39:26 +0000 |
| commit | 52110560e99487e7cc75bf1a924b10ea3cac0936 (patch) | |
| tree | fb4a4381ab0db7777883da42b49cc446d9725214 | |
| parent | 490818344050abd8e809b74017489f5262bcb375 (diff) | |
| download | emacs-52110560e99487e7cc75bf1a924b10ea3cac0936.tar.gz emacs-52110560e99487e7cc75bf1a924b10ea3cac0936.zip | |
(vc-log-info): Don't switch to the *vc* buffer before running
vc-do-command, because that would change its default-directory.
| -rw-r--r-- | lisp/vc.el | 4 |
1 files changed, 3 insertions, 1 deletions
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." | |||
| 1508 | ;; Search for information in log program output | 1508 | ;; Search for information in log program output |
| 1509 | (if (and file (file-exists-p file)) | 1509 | (if (and file (file-exists-p file)) |
| 1510 | (save-excursion | 1510 | (save-excursion |
| 1511 | (set-buffer (get-buffer-create "*vc*")) | 1511 | ;; Don't switch to the *vc* buffer before running vc-do-command, |
| 1512 | ;; because that would change its default-directory. | ||
| 1512 | (apply 'vc-do-command 0 command file last flags) | 1513 | (apply 'vc-do-command 0 command file last flags) |
| 1514 | (set-buffer (get-buffer "*vc*")) | ||
| 1513 | (set-buffer-modified-p nil) | 1515 | (set-buffer-modified-p nil) |
| 1514 | (prog1 | 1516 | (prog1 |
| 1515 | (vc-parse-buffer patterns file properties) | 1517 | (vc-parse-buffer patterns file properties) |