]> git.eshelyaron.com Git - emacs.git/commit
* diff-mode.el (diff-file-junk-re): New const.
authorStefan Monnier <monnier@iro.umontreal.ca>
Mon, 25 Feb 2008 03:54:54 +0000 (03:54 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Mon, 25 Feb 2008 03:54:54 +0000 (03:54 +0000)
commitf52d2f9c301760f4554e2e800bf9908430b87bba
tree5b24297a84a20c0c770935e9e62b6e314865fefe
parent31143cfcd3e0f663f7f10bbb95d176a83a840470
* diff-mode.el (diff-file-junk-re): New const.
(diff-beginning-of-file-and-junk): Use it.
(diff-file-kill): Make sure we were really inside a file diff.

* diff-mode.el: Make it more robust in the presence of empty context
lines in unified hunks.
(diff-valid-unified-empty-line): New var.
(diff-unified->context, diff-sanity-check-hunk): Obey it.
(diff-end-of-hunk): Obey it.  New arg `donttrustheader'.
(diff-fixup-modifs, diff-post-command-hook): Use this new arg.
(diff-hunk-header-re-unified): New const.
(diff-font-lock-keywords, diff-hunk-header-re, diff-split-hunk)
(diff-fixup-modifs, diff-unified->context, diff-next-complex-hunk)
(diff-sanity-check-hunk): Use it.

* diff-mode.el (diff-beginning-of-file-and-junk): If we're on the
Index: line, don't search backward for the previous one.
lisp/ChangeLog
lisp/diff-mode.el