Skip to content

Commit 4edb7d9

Browse files
committed
Fix more warnings in Emacs 27
1 parent 935438f commit 4edb7d9

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

diff-hl.el

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -916,7 +916,9 @@ buffer will show the position corresponding to its current line."
916916
(file-relative-name file rootdir))))
917917
(error "Directory is not version controlled"))
918918
(setq fileset (or fileset (vc-deduce-fileset)))
919-
(vc-buffer-sync-fileset fileset t)
919+
(static-if (< emacs-major-version 28)
920+
(vc-maybe-buffer-sync)
921+
(vc-buffer-sync-fileset fileset t))
920922
(let* ((line (line-number-at-pos)))
921923
(vc-diff-internal
922924
(if (boundp 'vc-allow-async-diff)
@@ -1763,6 +1765,7 @@ effect."
17631765

17641766
;; Commands below will only work with recent enough project.el.
17651767
(declare-function project-name "project")
1768+
(declare-function project-buffers "project")
17661769

17671770
(defun diff-hl-set-reference-rev-in-project-internal (rev proj)
17681771
(let* ((root (diff-hl--project-root proj)))

0 commit comments

Comments
 (0)