Check if there are hunks before kill or refine a hunk
commita362b56b51f49963dbb63cd318967bca9b9fef74
authorTino Calancha <tino.calancha@gmail.com>
Thu, 2 Feb 2017 13:27:33 +0000 (2 22:27 +0900)
committerTino Calancha <tino.calancha@gmail.com>
Thu, 2 Feb 2017 13:27:33 +0000 (2 22:27 +0900)
tree3583aa5b18eeed72ad80bbe85726ad8174945c2e
parent01d87bf846b478dea0bfe824678e76089f5af2c7
Check if there are hunks before kill or refine a hunk

* lisp/vc/diff-mode.el (diff--some-hunks-p): New predicate.
(diff-hunk-kill, diff-file-kill, diff-refine-hunk): Use it (Bug#25571).
lisp/vc/diff-mode.el