diff options
author | Richard M. Stallman <rms@gnu.org> | 1993-06-28 00:56:54 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1993-06-28 00:56:54 +0000 |
commit | 41dfb835db8a0c12fb7a03d484b8c7a9a7335f24 (patch) | |
tree | 24f3ce466cd63e2a19545a3b0e55f45fb23a7879 /lisp/vc.el | |
parent | d05b18831af098aad23760daa2782135d13a9b27 (diff) | |
download | emacs-41dfb835db8a0c12fb7a03d484b8c7a9a7335f24.tar.gz |
(vc-update-change-log): Restore previous default-directory
for running rcs2log.
Diffstat (limited to 'lisp/vc.el')
-rw-r--r-- | lisp/vc.el | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/lisp/vc.el b/lisp/vc.el index b48e3bf07d4..27490df9b9d 100644 --- a/lisp/vc.el +++ b/lisp/vc.el @@ -1129,16 +1129,18 @@ From a program, any arguments are passed to the `rcs2log' script." (setq files (cons (file-relative-name file) files))) (setq buffers (cdr buffers))) files)))) - (find-file-other-window (find-change-log)) - (barf-if-buffer-read-only) - (vc-buffer-sync) - (undo-boundary) - (goto-char (point-min)) - (push-mark) - (message "Computing change log entries...") - (message "Computing change log entries... %s" - (if (eq 0 (apply 'call-process "rcs2log" nil t nil args)) - "done" "failed"))) + (let ((odefault default-directory)) + (find-file-other-window (find-change-log)) + (barf-if-buffer-read-only) + (vc-buffer-sync) + (undo-boundary) + (goto-char (point-min)) + (push-mark) + (message "Computing change log entries...") + (let ((default-directory odefault)) + (message "Computing change log entries... %s" + (if (eq 0 (apply 'call-process "rcs2log" nil t nil args)) + "done" "failed"))))) ;; Functions for querying the master and lock files. |