Fixes for diff-hunk-kill.
commitcb3e7ae07a6ad7c46f5d67984d54f10f19103bef
authorChong Yidong <cyd@gnu.org>
Thu, 26 Apr 2012 08:00:47 +0000 (26 16:00 +0800)
committerChong Yidong <cyd@gnu.org>
Thu, 26 Apr 2012 08:00:47 +0000 (26 16:00 +0800)
treeaa9ca6d11414681b5af651e2d9739865faf2f76a
parent8b71081d301534a7fa4816530f4c3af61c67d038
Fixes for diff-hunk-kill.

* lisp/vc/diff-mode.el (diff-beginning-of-hunk): Return a meaningful
value, for symmetry with diff-end-of-hunk.
(diff-split-hunk, diff-find-source-location)
(diff-ignore-whitespace-hunk, diff-refine-hunk): Use it.
(diff-bounds-of-hunk, diff-bounds-of-file): New functions.
(diff-restrict-view, diff-hunk-kill, diff-file-kill): Use them to
compute the relevant hunk or file properly.
(diff-file-junk-re): Add bzr's "modified file" tag.

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