Fix whitespace highlighting of context diffs.
authorChong Yidong <cyd@gnu.org>
Wed, 25 Apr 2012 15:06:51 +0000 (23:06 +0800)
committerChong Yidong <cyd@gnu.org>
Wed, 25 Apr 2012 15:06:51 +0000 (23:06 +0800)
commit07875ee72bffac01a1978d0367883d6ceb88cc55
treee0815f89a1b9d015e0fdbde6670bec3aeef74096
parent5055880d396c98f9bacfd4d19aa4a9ae85d3a87c
Fix whitespace highlighting of context diffs.

* lisp/vc/diff-mode.el (diff-setup-whitespace): New function.
(diff-mode): Use it.

* lisp/vc/diff.el (diff-sentinel):
* lisp/vc/vc.el (vc-diff-finish): Call diff-setup-whitespace to assign
Whitespace mode variables based on diff style.

Fixes: debbugs:8612
lisp/ChangeLog
lisp/vc/diff-mode.el
lisp/vc/diff.el
lisp/vc/vc.el