From 4eb1a951229d96026ca58f965c652ab8e8392812 Mon Sep 17 00:00:00 2001 From: Jens Schmidt Date: Thu, 8 Jun 2023 23:38:45 +0200 Subject: [PATCH 3/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-rcs.el (vc-rcs-print-log): Add call to `vc-setup-buffer'. (Bug#63949) --- lisp/vc/vc-rcs.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lisp/vc/vc-rcs.el b/lisp/vc/vc-rcs.el index c2112b76ad3..05846a7de35 100644 --- a/lisp/vc/vc-rcs.el +++ b/lisp/vc/vc-rcs.el @@ -548,6 +548,8 @@ vc-rcs-print-log Remaining arguments are ignored. If FILE is a directory the operation is applied to all registered files beneath it." + (save-current-buffer + (vc-setup-buffer buffer)) (vc-do-command (or buffer "*vc*") 0 "rlog" (mapcar #'vc-master-name (vc-expand-dirs files 'RCS))) (with-current-buffer (or buffer "*vc*") -- 2.30.2