emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/diff-hl 5c65ada 09/10: Fix one warning


From: ELPA Syncer
Subject: [elpa] externals/diff-hl 5c65ada 09/10: Fix one warning
Date: Mon, 22 Feb 2021 22:57:16 -0500 (EST)

branch: externals/diff-hl
commit 5c65ada78b88c61f353a5f936d2ceed11ab2bad4
Author: Dmitry Gutov <dgutov@yandex.ru>
Commit: Dmitry Gutov <dgutov@yandex.ru>

    Fix one warning
---
 diff-hl.el | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/diff-hl.el b/diff-hl.el
index 8b1000f..1cb7002 100644
--- a/diff-hl.el
+++ b/diff-hl.el
@@ -771,11 +771,14 @@ the user should be returned."
                    (vc-call-backend (or backend (vc-backend file))
                                     'working-revision file)))
 
+(declare-function diff-no-select "diff")
+
 (defun diff-hl-diff-buffer-with-head (file &optional dest-buffer backend)
   "Compute the differences between FILE and its associated file
 in head revision. The diffs are computed in the buffer
 DEST-BUFFER. This requires the external program `diff' to be in
 your `exec-path'."
+  (require 'diff)
   (vc-ensure-vc-buffer)
   (save-current-buffer
     (let* ((dest-buffer (or dest-buffer "*diff-hl-diff-bufer-with-head*"))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]