diff options
| author | Miles Bader | 2008-01-30 07:57:28 +0000 |
|---|---|---|
| committer | Miles Bader | 2008-01-30 07:57:28 +0000 |
| commit | d235ca2ff8fab139ce797757fcb159d1e28fa7e0 (patch) | |
| tree | 96c5cd1a06a0d9dc26e8470c6eabfc032c0046f3 /lisp/diff-mode.el | |
| parent | 3709a060f679dba14df71ae64a0035fa2b5b3106 (diff) | |
| parent | 02cbe062bee38a6705bafb1699d77e3c44cfafcf (diff) | |
| download | emacs-d235ca2ff8fab139ce797757fcb159d1e28fa7e0.tar.gz emacs-d235ca2ff8fab139ce797757fcb159d1e28fa7e0.zip | |
Merge from emacs--devo--0
Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-324
Diffstat (limited to 'lisp/diff-mode.el')
| -rw-r--r-- | lisp/diff-mode.el | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lisp/diff-mode.el b/lisp/diff-mode.el index 6291453ba17..b8b6a009e2b 100644 --- a/lisp/diff-mode.el +++ b/lisp/diff-mode.el | |||
| @@ -401,13 +401,9 @@ when editing big diffs)." | |||
| 401 | (defun diff-end-of-hunk (&optional style) | 401 | (defun diff-end-of-hunk (&optional style) |
| 402 | ;; Especially important for unified (because headers are ambiguous). | 402 | ;; Especially important for unified (because headers are ambiguous). |
| 403 | (setq style (diff-hunk-style style)) | 403 | (setq style (diff-hunk-style style)) |
| 404 | ;; Some versions of diff replace all-blank context lines in unified | ||
| 405 | ;; format with empty lines. The use of \n below avoids matching such | ||
| 406 | ;; lines as headers. | ||
| 407 | ;; http://lists.gnu.org/archive/html/emacs-devel/2007-11/msg01990.html | ||
| 408 | (let ((end (and (re-search-forward (case style | 404 | (let ((end (and (re-search-forward (case style |
| 409 | ;; A `unified' header is ambiguous. | 405 | ;; A `unified' header is ambiguous. |
| 410 | (unified (concat "^[^-+# \\\n]\\|" | 406 | (unified (concat "^[^-+# \\]\\|" |
| 411 | diff-file-header-re)) | 407 | diff-file-header-re)) |
| 412 | (context "^[^-+#! \\]") | 408 | (context "^[^-+#! \\]") |
| 413 | (normal "^[^<>#\\]") | 409 | (normal "^[^<>#\\]") |