From: Paul Eggert Date: Mon, 3 Jan 1994 20:53:26 +0000 (+0000) Subject: (vc-finish-logentry): Sync the buffer in case the user modified it while X-Git-Tag: emacs-19.34~10423 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b2396d1f39fc4fa43a21893d050b7013e619d91e;p=emacs.git (vc-finish-logentry): Sync the buffer in case the user modified it while editing the comment. --- 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