From: Juri Linkov Date: Tue, 28 Dec 2021 08:45:27 +0000 (+0200) Subject: * lisp/vc/vc.el (vc-revert): Use generate-new-buffer, not just new buffer name X-Git-Tag: emacs-29.0.90~3399 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a17a11df04fcc5e48330e92d6f33f0a40655e5af;p=emacs.git * lisp/vc/vc.el (vc-revert): Use generate-new-buffer, not just new buffer name --- 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.