diff options
| author | Stefan Monnier | 2008-02-29 02:40:10 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2008-02-29 02:40:10 +0000 |
| commit | 79fd61680608307ec1be4c53705b542d8d383778 (patch) | |
| tree | b5578034c0765eeed58d2c90f8a17d676915cf85 | |
| parent | fbd882eda03b9f6dc4efb84a6a527cd1062ed6ee (diff) | |
| download | emacs-79fd61680608307ec1be4c53705b542d8d383778.tar.gz emacs-79fd61680608307ec1be4c53705b542d8d383778.zip | |
(diff-sanity-check-hunk): Only accept an empty line if
we still expect more lines.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/diff-mode.el | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 499f2fd82b3..438e2b5f52a 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * diff-mode.el (diff-sanity-check-hunk): Only accept an empty line if | ||
| 4 | we still expect more lines. | ||
| 5 | |||
| 1 | 2008-02-28 Juri Linkov <juri@jurta.org> | 6 | 2008-02-28 Juri Linkov <juri@jurta.org> |
| 2 | 7 | ||
| 3 | * startup.el (normal-splash-screen): Add argument `concise'. | 8 | * startup.el (normal-splash-screen): Add argument `concise'. |
diff --git a/lisp/diff-mode.el b/lisp/diff-mode.el index 5a01793d06e..c57613dff51 100644 --- a/lisp/diff-mode.el +++ b/lisp/diff-mode.el | |||
| @@ -1251,7 +1251,8 @@ Only works for unified diffs." | |||
| 1251 | (cond | 1251 | (cond |
| 1252 | ((and diff-valid-unified-empty-line | 1252 | ((and diff-valid-unified-empty-line |
| 1253 | ;; Not just (eolp) so we don't infloop at eob. | 1253 | ;; Not just (eolp) so we don't infloop at eob. |
| 1254 | (eq (char-after) ?\n)) | 1254 | (eq (char-after) ?\n) |
| 1255 | (> before 0) (> after 0)) | ||
| 1255 | (decf before) (decf after) t) | 1256 | (decf before) (decf after) t) |
| 1256 | ((and (zerop before) (zerop after)) nil) | 1257 | ((and (zerop before) (zerop after)) nil) |
| 1257 | ((or (< before 0) (< after 0)) | 1258 | ((or (< before 0) (< after 0)) |