Skip to content

Commit 90db5ca

Browse files
committed
Switch static-if checks to use boundp and fboundp
Resolves #263
1 parent 845c492 commit 90db5ca

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

diff-hl.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ It can be a relative expression as well, such as \"HEAD^\" with Git, or
421421
(or (memq state '(edited conflict))
422422
(and (eq state 'up-to-date)
423423
;; VC state is stale in after-revert-hook.
424-
(or (static-if (>= emacs-major-version 31)
424+
(or (static-if (boundp 'revert-buffer-in-progress)
425425
revert-buffer-in-progress
426426
revert-buffer-in-progress-p)
427427
;; Diffing against an older revision.
@@ -740,7 +740,7 @@ Return a list of line overlays used."
740740
(defun diff-hl--resolve (value-or-buffer cb)
741741
(if (listp value-or-buffer)
742742
(funcall cb value-or-buffer)
743-
(static-if (>= emacs-major-version 31)
743+
(static-if (fboundp 'vc-run-delayed-success)
744744
(with-current-buffer value-or-buffer
745745
(vc-run-delayed-success 1
746746
(funcall cb (diff-hl-changes-from-buffer (current-buffer)))))

0 commit comments

Comments
 (0)