]> git.eshelyaron.com Git - emacs.git/commitdiff
(vc-finish-logentry): Sync the buffer in case the user modified it while
authorPaul Eggert <eggert@twinsun.com>
Mon, 3 Jan 1994 20:53:26 +0000 (20:53 +0000)
committerPaul Eggert <eggert@twinsun.com>
Mon, 3 Jan 1994 20:53:26 +0000 (20:53 +0000)
editing the comment.

lisp/vc.el

index c469c7ca18914f681a1e32cc65421c4aaa8d035e..3439b354b24a838e6be53c6f52e3db0d2845c467 100644 (file)
@@ -668,6 +668,10 @@ If nil, uses `change-log-default-name'."
            (setq vc-comment-ring (make-ring vc-maximum-comment-ring-size)))
        (ring-insert vc-comment-ring (buffer-string))
        ))
+  ;; Sync parent buffer in case the user modified it while editing the comment.
+  (save-excursion
+    (set-buffer vc-parent-buffer)
+    (vc-buffer-sync))
   ;; OK, do it to it
   (if vc-log-operation
       (save-excursion