diff options
author | Juri Linkov <juri@linkov.net> | 2022-09-11 11:22:11 +0300 |
---|---|---|
committer | Juri Linkov <juri@linkov.net> | 2022-09-11 11:22:11 +0300 |
commit | 8a902013e4d390ec077baff29f96e9fd12e2f392 (patch) | |
tree | 8073f79c41b3c0b15eff444cf3789cc441da572b | |
parent | 03969ddcac1a3c34a2073b922e833997100d972b (diff) | |
download | emacs-8a902013e4d390ec077baff29f96e9fd12e2f392.tar.gz |
* lisp/vc/vc.el (vc-diff-patch-string): Fix arg in revert-buffer-function.
-rw-r--r-- | lisp/vc/vc.el | 3 |
1 files changed, 2 insertions, 1 deletions
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)))) |