emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 8a902013e4: * lisp/vc/vc.el (vc-diff-patch-string): Fix arg in re


From: Juri Linkov
Subject: master 8a902013e4: * lisp/vc/vc.el (vc-diff-patch-string): Fix arg in revert-buffer-function.
Date: Sun, 11 Sep 2022 04:22:40 -0400 (EDT)

branch: master
commit 8a902013e4d390ec077baff29f96e9fd12e2f392
Author: Juri Linkov <juri@linkov.net>
Commit: Juri Linkov <juri@linkov.net>

    * 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 c4f0671d64..c75356c4bd 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))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]