(diff-beginning-of-file-and-junk): If we're on the

Index: line, don't search backward for the previous one.
This commit is contained in:
Stefan Monnier 2008-02-10 16:36:07 +00:00
parent 73dd622fb4
commit f060b622fb
2 changed files with 6 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
* diff-mode.el (diff-beginning-of-file-and-junk): If we're on the
Index: line, don't search backward for the previous one.
2008-02-10 ,AF(Bvar Arnfj,Av(Br,Ap(B Bjarmason <avar@cpan.org> (tiny change)
* net/rcirc.el (rcirc-url-regexp): Replace definition by copying

View file

@ -489,6 +489,7 @@ data such as \"Index: ...\" and such."
(diff-file-next)
(setq file (point)))
(let ((index (save-excursion
(forward-line 1) ;In case we're looking at "Index:".
(re-search-backward "^Index: " prevhunk t))))
(when index (setq file index))
(if (<= file start)