# HG changeset patch # User Paul Eggert # Date 757630406 0 # Node ID e66b058ec9f6a975ff7d1119afc9da2bf5b7cf1e # Parent cde2cde50796a59e18fe6f941cc863a197fb3f81 (vc-finish-logentry): Sync the buffer in case the user modified it while editing the comment. diff -r cde2cde50796 -r e66b058ec9f6 lisp/vc.el --- a/lisp/vc.el Mon Jan 03 20:06:28 1994 +0000 +++ b/lisp/vc.el Mon Jan 03 20:53:26 1994 +0000 @@ -668,6 +668,10 @@ (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