(diff-apply-hunk): Function basically rewritten. Now understands
commit7530b6da4e245c83407efdddfa87b496246ab80d
authorMiles Bader <miles@gnu.org>
Mon, 11 Sep 2000 13:51:21 +0000 (11 13:51 +0000)
committerMiles Bader <miles@gnu.org>
Mon, 11 Sep 2000 13:51:21 +0000 (11 13:51 +0000)
tree51cba920e2b6b35a3d07f981f3e341f187698ba1
parentf74b07059d4bd017536a77a792b0575d6c2f1a1b
(diff-apply-hunk):  Function basically rewritten.  Now understands
  non-unified diffs.  Some functionality moved into `diff-hunk-text' and
  `diff-find-text'.  Add OTHER-FILE, DRY-RUN, POPUP, and NOERROR
  arguments.  If DRY-RUN is true, don't actually modify anything.  Only
  reposition point in the patched file if the patch succeeds.  Only pop
  up another window if POPUP is true.  Emit a message describing what
  happened if successful, and at what line-offset.  Automatically detect
  reversed hunks and do something appropriate.
(diff-hunk-text, diff-find-text): New functions.
(diff-filter-lines): Function removed.
(diff-test-hunk): New function.
(diff-goto-source): Rewritten in terms of diff-apply-hunk.
lisp/ChangeLog
lisp/diff-mode.el