]> git.eshelyaron.com Git - emacs.git/commitdiff
At compile time, require dired.
authorRichard M. Stallman <rms@gnu.org>
Tue, 19 Jul 1994 22:30:06 +0000 (22:30 +0000)
committerRichard M. Stallman <rms@gnu.org>
Tue, 19 Jul 1994 22:30:06 +0000 (22:30 +0000)
(vc-finish-logentry): Use the proper files buffer for vc-buffer-sync.

lisp/vc.el

index 07f37334c65a937e3073df0a19862d0fb3d56822..ca2eda59cf2a8fc74640ae2ec7fffefc6b4e1ca4 100644 (file)
@@ -61,6 +61,7 @@
 
 (require 'vc-hooks)
 (require 'ring)
+(eval-when-compile (require 'dired))   ; for dired-map-over-marks macro
 
 (if (not (assoc 'vc-parent-buffer minor-mode-alist))
     (setq minor-mode-alist
@@ -676,8 +677,11 @@ If nil, uses `change-log-default-name'."
        ))
   ;; Sync parent buffer in case the user modified it while editing the comment.
   (save-excursion
-    (set-buffer vc-parent-buffer)
-    (vc-buffer-sync))
+    (let ((buffer (get-file-buffer vc-log-file)))
+      (if buffer
+         (progn
+           (set-buffer buffer)
+           (vc-buffer-sync)))))
   ;; OK, do it to it
   (if vc-log-operation
       (save-excursion