# HG changeset patch # User Stefan Monnier # Date 1210543047 0 # Node ID c5a53051fe83a2f0758c64cdc802d0977a34bc84 # Parent 41d345675caef2da4f350dd77c061945dcfe5a92 (diff-hunk-header-re): Refine the regexp. diff -r 41d345675cae -r c5a53051fe83 lisp/ChangeLog --- a/lisp/ChangeLog Sun May 11 20:32:33 2008 +0000 +++ b/lisp/ChangeLog Sun May 11 21:57:27 2008 +0000 @@ -1,3 +1,7 @@ +2008-05-11 Stefan Monnier + + * diff-mode.el (diff-hunk-header-re): Refine the regexp. + 2008-05-11 Juri Linkov * wid-edit.el (widget-image-directory): Change default image data diff -r 41d345675cae -r c5a53051fe83 lisp/diff-mode.el --- a/lisp/diff-mode.el Sun May 11 20:32:33 2008 +0000 +++ b/lisp/diff-mode.el Sun May 11 21:57:27 2008 +0000 @@ -420,7 +420,7 @@ (defconst diff-hunk-header-re (concat "^\\(?:" diff-hunk-header-re-unified ".*\\|\\*\\{15\\}.*\n\\*\\*\\* .+ \\*\\*\\*\\*\\|[0-9]+\\(,[0-9]+\\)?[acd][0-9]+\\(,[0-9]+\\)?\\)$")) -(defconst diff-file-header-re (concat "^\\(--- .+\n\\+\\+\\+ \\|\\*\\*\\* .+\n--- \\|[^-+!<>0-9@* ]\\).+\n" (substring diff-hunk-header-re 1))) +(defconst diff-file-header-re (concat "^\\(--- .+\n\\+\\+\\+ \\|\\*\\*\\* .+\n--- \\|[^-+!<>0-9@* \n]\\).+\n" (substring diff-hunk-header-re 1))) (defvar diff-narrowed-to nil) (defun diff-hunk-style (&optional style)