branch: externals/diff-hl
commit e79aa49ad3cbbe85379cf6646db3aaacd3b04708
Author: Dmitry Gutov <[email protected]>
Commit: Dmitry Gutov <[email protected]>
Mention corresponding versions #263
---
diff-hl.el | 2 ++
1 file changed, 2 insertions(+)
diff --git a/diff-hl.el b/diff-hl.el
index 2bc502a41b..6f3f1377e6 100644
--- a/diff-hl.el
+++ b/diff-hl.el
@@ -422,6 +422,7 @@ It can be a relative expression as well, such as \"HEAD^\"
with Git, or
(and (eq state 'up-to-date)
;; VC state is stale in after-revert-hook.
(or (static-if (boundp 'revert-buffer-in-progress)
+ ;; Emacs 31.
revert-buffer-in-progress
revert-buffer-in-progress-p)
;; Diffing against an older revision.
@@ -741,6 +742,7 @@ Return a list of line overlays used."
(if (listp value-or-buffer)
(funcall cb value-or-buffer)
(static-if (fboundp 'vc-run-delayed-success)
+ ;; Emacs 31.
(with-current-buffer value-or-buffer
(vc-run-delayed-success 1
(funcall cb (diff-hl-changes-from-buffer (current-buffer)))))