branch: externals/diff-hl
commit ef4b43733ff152c52ab9e0ae9496af95daeafa24
Author: Jonas Bernoulli <[email protected]>
Commit: Jonas Bernoulli <[email protected]>

    Fix compiler warning for Emacs 31
---
 diff-hl.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/diff-hl.el b/diff-hl.el
index eab7371d6e..ca66a51153 100644
--- a/diff-hl.el
+++ b/diff-hl.el
@@ -422,7 +422,9 @@ It can be a relative expression as well, such as \"HEAD^\" 
with Git, or
   (or (memq state '(edited conflict))
       (and (eq state 'up-to-date)
            ;; VC state is stale in after-revert-hook.
-           (or revert-buffer-in-progress-p
+           (or (static-if (>= emacs-major-version 31)
+                   revert-buffer-in-progress
+                 revert-buffer-in-progress-p)
                ;; Diffing against an older revision.
                diff-hl-reference-revision))))
 

Reply via email to