diff options
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/diff-mode.el | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 9bc3a32df6f..900489317a7 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * diff-mode.el (diff-beginning-of-file-and-junk): If we're on the | ||
| 4 | Index: line, don't search backward for the previous one. | ||
| 5 | |||
| 1 | 2008-02-10 ,AF(Bvar Arnfj,Av(Br,Ap(B Bjarmason <avar@cpan.org> (tiny change) | 6 | 2008-02-10 ,AF(Bvar Arnfj,Av(Br,Ap(B Bjarmason <avar@cpan.org> (tiny change) |
| 2 | 7 | ||
| 3 | * net/rcirc.el (rcirc-url-regexp): Replace definition by copying | 8 | * net/rcirc.el (rcirc-url-regexp): Replace definition by copying |
diff --git a/lisp/diff-mode.el b/lisp/diff-mode.el index 4c566b344a9..6794fab11f8 100644 --- a/lisp/diff-mode.el +++ b/lisp/diff-mode.el | |||
| @@ -489,6 +489,7 @@ data such as \"Index: ...\" and such." | |||
| 489 | (diff-file-next) | 489 | (diff-file-next) |
| 490 | (setq file (point))) | 490 | (setq file (point))) |
| 491 | (let ((index (save-excursion | 491 | (let ((index (save-excursion |
| 492 | (forward-line 1) ;In case we're looking at "Index:". | ||
| 492 | (re-search-backward "^Index: " prevhunk t)))) | 493 | (re-search-backward "^Index: " prevhunk t)))) |
| 493 | (when index (setq file index)) | 494 | (when index (setq file index)) |
| 494 | (if (<= file start) | 495 | (if (<= file start) |