summaryrefslogtreecommitdiff
path: root/lisp/vc.el
diff options
context:
space:
mode:
authorPaul Eggert <eggert@twinsun.com>1994-01-03 20:53:26 +0000
committerPaul Eggert <eggert@twinsun.com>1994-01-03 20:53:26 +0000
commit4d92b536c42613820b63f0fa015a3021e10053a0 (patch)
tree484436bacc821a2d78dc9e15ada9fccaff1e05ac /lisp/vc.el
parent9d8e0470ed17a17d1e4bc66957e9b60719153ed2 (diff)
downloademacs-4d92b536c42613820b63f0fa015a3021e10053a0.tar.gz
(vc-finish-logentry): Sync the buffer in case the user modified it while
editing the comment.
Diffstat (limited to 'lisp/vc.el')
-rw-r--r--lisp/vc.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/vc.el b/lisp/vc.el
index c469c7ca189..3439b354b24 100644
--- a/lisp/vc.el
+++ b/lisp/vc.el
@@ -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