From 4cb5eaa2166103d645fa77972b456dd6a4fad282 Mon Sep 17 00:00:00 2001 From: Jens Schmidt Date: Thu, 8 Jun 2023 23:37:45 +0200 Subject: [PATCH 2/5] Always erase log buffer before calling `vc-*-print-log' When calling `vc-print-log' from buffer *vc-change-log* itself for backends SCCS, RCS, and CVS, the log information is inserted or appended to the *vc-change-log* buffer again without previously erasing it. * lisp/vc/vc-cvs.el (vc-cvs-print-log): Add call to `vc-setup-buffer'. (Bug#63949) --- lisp/vc/vc-cvs.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lisp/vc/vc-cvs.el b/lisp/vc/vc-cvs.el index 6e0246ea762..cf74ac31154 100644 --- a/lisp/vc/vc-cvs.el +++ b/lisp/vc/vc-cvs.el @@ -550,6 +550,8 @@ vc-cvs-modify-change-comment (defun vc-cvs-print-log (files buffer &optional _shortlog _start-revision limit) "Print commit log associated with FILES into specified BUFFER. Remaining arguments are ignored." + (save-current-buffer + (vc-setup-buffer buffer)) ;; It's just the catenation of the individual logs. (vc-cvs-command buffer -- 2.30.2