summaryrefslogtreecommitdiff
path: root/lisp/diff-mode.el
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2008-05-11 21:57:27 +0000
committerStefan Monnier <monnier@iro.umontreal.ca>2008-05-11 21:57:27 +0000
commit365bdf633bfdea972e63d42bff7e503f80716e69 (patch)
treefacaaef52ef5ddb511ab4d2f8e8a4fe40dd35d16 /lisp/diff-mode.el
parentfd3d78f2922a086fc053618b8133cc909f6035e6 (diff)
downloademacs-365bdf633bfdea972e63d42bff7e503f80716e69.tar.gz
(diff-hunk-header-re): Refine the regexp.
Diffstat (limited to 'lisp/diff-mode.el')
-rw-r--r--lisp/diff-mode.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/diff-mode.el b/lisp/diff-mode.el
index 3bd032331b3..0090a61d0ab 100644
--- a/lisp/diff-mode.el
+++ b/lisp/diff-mode.el
@@ -420,7 +420,7 @@ See http://lists.gnu.org/archive/html/emacs-devel/2007-11/msg01990.html")
(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)