changeset 3905:5669887e3692

(vc-update-change-log): Restore previous default-directory for running rcs2log.
author Richard M. Stallman <rms@gnu.org>
date Mon, 28 Jun 1993 00:56:54 +0000
parents 6c98b9e2a213
children a03d6cac1cd1
files lisp/vc.el
diffstat 1 files changed, 12 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- 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.