From 8a902013e4d390ec077baff29f96e9fd12e2f392 Mon Sep 17 00:00:00 2001 From: Juri Linkov Date: Sun, 11 Sep 2022 11:22:11 +0300 Subject: [PATCH] * lisp/vc/vc.el (vc-diff-patch-string): Fix arg in revert-buffer-function. --- lisp/vc/vc.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/vc/vc.el b/lisp/vc/vc.el index c4f0671d643..c75356c4bdf 100644 --- a/lisp/vc/vc.el +++ b/lisp/vc/vc.el @@ -1808,7 +1808,8 @@ in the output buffer." (setq buffer-read-only t) (diff-mode) (setq-local diff-vc-backend (vc-responsible-backend default-directory)) - (setq-local revert-buffer-function (lambda (_ _) (vc-diff-patch-string))) + (setq-local revert-buffer-function + (lambda (_ _) (vc-diff-patch-string patch-string))) (setq-local vc-patch-string patch-string) (pop-to-buffer (current-buffer)) (vc-run-delayed (vc-diff-finish (current-buffer) nil)))) -- 2.39.2