From bf27c418695214a77cc369b8069f8b9c27d0eb1f Mon Sep 17 00:00:00 2001 From: Dmitry Gutov Date: Tue, 18 Aug 2015 17:49:36 +0300 Subject: [PATCH] vc-disable-async-diff: Don't bind when it's undefined Fixes #47 --- diff-hl.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/diff-hl.el b/diff-hl.el index 5b6510d55..8f2221a7c 100644 --- a/diff-hl.el +++ b/diff-hl.el @@ -213,7 +213,8 @@ (vc-hg-diff-switches nil) (vc-svn-diff-switches nil) (vc-diff-switches '("-U0")) - (vc-disable-async-diff t)) + ,@(when (boundp 'vc-disable-async-diff) + '((vc-disable-async-diff t)))) ,body)) (defun diff-hl-changes () -- 2.39.2