]> git.eshelyaron.com Git - emacs.git/commitdiff
(vc-update-change-log): Restore previous default-directory
authorRichard M. Stallman <rms@gnu.org>
Mon, 28 Jun 1993 00:56:54 +0000 (00:56 +0000)
committerRichard M. Stallman <rms@gnu.org>
Mon, 28 Jun 1993 00:56:54 +0000 (00:56 +0000)
for running rcs2log.

lisp/vc.el

index b48e3bf07d428fbea16db76ab78777a69790102f..27490df9b9d29424e9322db3978573c4f6d25a9f 100644 (file)
@@ -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.