diff options
author | Glenn Morris <rgm@gnu.org> | 2008-01-15 03:46:59 +0000 |
---|---|---|
committer | Glenn Morris <rgm@gnu.org> | 2008-01-15 03:46:59 +0000 |
commit | 858fd4a4b4cbe0ff031621097c4500f4f977cba8 (patch) | |
tree | 1e5839ff2e5b3f9892f6e713374868f9cfdc211d /lisp/diff-mode.el | |
parent | 11a609d13fcbe36e89c8727be97654eb5dc0f86a (diff) | |
download | emacs-858fd4a4b4cbe0ff031621097c4500f4f977cba8.tar.gz emacs-858fd4a4b4cbe0ff031621097c4500f4f977cba8.tar.bz2 emacs-858fd4a4b4cbe0ff031621097c4500f4f977cba8.zip |
(diff-end-of-hunk): Revert 2008-01-08 change.
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 a088cd6ccba..4c566b344a9 100644 --- a/lisp/diff-mode.el +++ b/lisp/diff-mode.el @@ -391,13 +391,9 @@ when editing big diffs)." ;; Especially important for unified (because headers are ambiguous). (setq style (cdr (assq (char-after) '((?@ . unified) (?* . context)))))) (goto-char (match-end 0))) - ;; Some versions of diff replace all-blank context lines in unified - ;; format with empty lines. The use of \n below avoids matching such - ;; lines as headers. - ;; http://lists.gnu.org/archive/html/emacs-devel/2007-11/msg01990.html (let ((end (and (re-search-forward (case style ;; A `unified' header is ambiguous. - (unified (concat "^[^-+# \\\n]\\|" + (unified (concat "^[^-+# \\]\\|" diff-file-header-re)) (context "^[^-+#! \\]") (normal "^[^<>#\\]") |