]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/vc/vc.el (vc-revert): Use generate-new-buffer, not just new buffer name
authorJuri Linkov <juri@linkov.net>
Tue, 28 Dec 2021 08:45:27 +0000 (10:45 +0200)
committerJuri Linkov <juri@linkov.net>
Tue, 28 Dec 2021 08:46:40 +0000 (10:46 +0200)
lisp/vc/vc.el

index 64f752f248d2e1e82696d3cba064d6dc911e1695..ba94d908d101336805b4e2f5fa69569d27ee03a9 100644 (file)
@@ -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.