From 9e3cb8038ea5bea3e2f129f0271a0cf3ec948159 Mon Sep 17 00:00:00 2001 From: Jens Schmidt Date: Thu, 8 Jun 2023 23:36:46 +0200 Subject: [PATCH 1/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-sccs.el (vc-sccs-print-log): Add call to `vc-setup-buffer'. (Bug#63949) --- lisp/vc/vc-sccs.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lisp/vc/vc-sccs.el b/lisp/vc/vc-sccs.el index 03e9d12b76f..e5430753a64 100644 --- a/lisp/vc/vc-sccs.el +++ b/lisp/vc/vc-sccs.el @@ -310,6 +310,8 @@ vc-sccs-print-log "Print commit log associated with FILES into specified BUFFER. Remaining arguments are ignored." (setq files (vc-expand-dirs files 'SCCS)) + (save-current-buffer + (vc-setup-buffer buffer)) (vc-sccs-do-command buffer 0 "prs" (mapcar #'vc-master-name files)) (when limit 'limit-unsupported)) -- 2.30.2