# HG changeset patch # User Richard M. Stallman # Date 741229014 0 # Node ID 5669887e369204a95e2f0d4497819db6dbdc8262 # Parent 6c98b9e2a213ae4526b4a0697d3dea86d5c0bd48 (vc-update-change-log): Restore previous default-directory for running rcs2log. diff -r 6c98b9e2a213 -r 5669887e3692 lisp/vc.el --- a/lisp/vc.el Sun Jun 27 21:26:43 1993 +0000 +++ b/lisp/vc.el Mon Jun 28 00:56:54 1993 +0000 @@ -1129,16 +1129,18 @@ (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.