diff-mode is able to better handle file headers
commit6b6abe0dba6a9a2e5f78aac3814421886e7a184f
authorDima Kogan <dima@secretsauce.net>
Tue, 20 Dec 2016 07:25:28 +0000 (19 23:25 -0800)
committerDima Kogan <dima@secretsauce.net>
Sun, 25 Dec 2016 05:32:34 +0000 (24 21:32 -0800)
treeeaa93763b1b73be6600a8d025e67589c8d2abda5
parent2dae636237603b436b48e77e2f893bb4d42f3ce7
diff-mode is able to better handle file headers

This fixes a regression introduced in

  http://git.savannah.gnu.org/gitweb/?p=emacs.git;a=commit;h=2c8a7e50d24daf19ea7d86f1cfeaa98a41c56085

This bug was filed in

  https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25105

Patches generated from a VCS such as git contain a patch message at the
start, and diff-mode is now once-again able to properly able to ignore
this message when issuing navigation commands around the message.

* lisp/vc/diff-mode.el (diff-beginning-of-file-and-junk): More
  thoroughly ignore the header when looking for a beginning of file
  diffs.
lisp/vc/diff-mode.el