(diff-hunk-header-re): Refine the regexp.
This commit is contained in:
parent
fd3d78f292
commit
365bdf633b
2 changed files with 5 additions and 1 deletions
|
|
@ -1,3 +1,7 @@
|
|||
2008-05-11 Stefan Monnier <monnier@iro.umontreal.ca>
|
||||
|
||||
* diff-mode.el (diff-hunk-header-re): Refine the regexp.
|
||||
|
||||
2008-05-11 Juri Linkov <juri@jurta.org>
|
||||
|
||||
* wid-edit.el (widget-image-directory): Change default image data
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue