diff options
author | Michael Kifer <kifer@cs.stonybrook.edu> | 2007-06-13 20:24:31 +0000 |
---|---|---|
committer | Michael Kifer <kifer@cs.stonybrook.edu> | 2007-06-13 20:24:31 +0000 |
commit | 141f0c038a2cbf9cc91fed54ca6aac76120d216d (patch) | |
tree | af5f64e78af5e6adabf735b375ee9dbe10bf8d4f /lisp/ediff-ptch.el | |
parent | ecda6582536032e0c8af2a01235f77a2bcda5e07 (diff) | |
download | emacs-141f0c038a2cbf9cc91fed54ca6aac76120d216d.tar.gz |
2007-06-13 Michael Kifer <kifer@cs.stonybrook.edu>
* ediff-ptch.el (ediff-context-diff-label-regexp): partially undid
previous patch
Diffstat (limited to 'lisp/ediff-ptch.el')
-rw-r--r-- | lisp/ediff-ptch.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/ediff-ptch.el b/lisp/ediff-ptch.el index 45fb1e2a3f6..8c0be8b1c8d 100644 --- a/lisp/ediff-ptch.el +++ b/lisp/ediff-ptch.el @@ -134,11 +134,13 @@ patch. So, don't change these variables, unless the default doesn't work." :type '(choice (const nil) string) :group 'ediff-ptch) +;; This context diff does not recognize spaces inside files, but removing ' ' +;; from [^ \t] breaks normal patches for some reason (defcustom ediff-context-diff-label-regexp (concat "\\(" ; context diff 2-liner - "^\\*\\*\\* \\([^\t]+\\)[^*]+[\t ]*\n--- \\([^\t]+\\)" + "^\\*\\*\\* +\\([^ \t]+\\)[^*]+[\t ]*\n--- +\\([^ \t]+\\)" "\\|" ; GNU unified format diff 2-liner - "^--- \\([^\t]+\\)[\t ]+.*\n\\+\\+\\+ \\([^\t]+\\)" + "^--- +\\([^ \t]+\\)[\t ]+.*\n\\+\\+\\+ +\\([^ \t]+\\)" "\\)") "*Regexp matching filename 2-liners at the start of each context diff. You probably don't want to change that, unless you are using an obscure patch |