From: Eric S. Raymond Date: Tue, 2 Dec 2014 03:56:01 +0000 (-0500) Subject: Fix minor bug introduced in 'Terminate vc-disable-async-diff' X-Git-Tag: emacs-25.0.90~2635^2~229 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ea99f8c1ab8e97a54116e50157dd4bd6f1247b91;p=emacs.git Fix minor bug introduced in 'Terminate vc-disable-async-diff' --- diff --git a/lisp/vc/vc.el b/lisp/vc/vc.el index 40e4211c6e4..9e6b049e084 100644 --- a/lisp/vc/vc.el +++ b/lisp/vc/vc.el @@ -1714,7 +1714,7 @@ Return t if the buffer had changes, nil otherwise." ;; We regard this as "changed". ;; Diff it against /dev/null. (apply 'vc-do-command buffer - (async 'async 1) "diff" file + (if async 'async 1) "diff" file (append (vc-switches nil 'diff) '("/dev/null")))))) (setq files (nreverse filtered)))) (vc-call-backend (car vc-fileset) 'diff files async rev1 rev2 buffer)