From a17a11df04fcc5e48330e92d6f33f0a40655e5af Mon Sep 17 00:00:00 2001 From: Juri Linkov Date: Tue, 28 Dec 2021 10:45:27 +0200 Subject: [PATCH] * lisp/vc/vc.el (vc-revert): Use generate-new-buffer, not just new buffer name --- lisp/vc/vc.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/vc/vc.el b/lisp/vc/vc.el index 64f752f248d..ba94d908d10 100644 --- a/lisp/vc/vc.el +++ b/lisp/vc/vc.el @@ -2755,7 +2755,7 @@ to the working revision (except for keyword expansion)." (unwind-protect (when (if vc-revert-show-diff (progn - (setq diff-buffer (generate-new-buffer-name "*vc-diff*")) + (setq diff-buffer (generate-new-buffer "*vc-diff*")) (vc-diff-internal vc-allow-async-revert vc-fileset nil nil nil diff-buffer)) ;; Avoid querying the user again. -- 2.39.2