changeset 80099:f68e2df975f5

(diff-beginning-of-file-and-junk): If we're on the Index: line, don't search backward for the previous one.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Sun, 10 Feb 2008 16:36:07 +0000
parents c2981640cb2c
children d68c088810a2
files lisp/ChangeLog lisp/diff-mode.el
diffstat 2 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Sun Feb 10 14:04:01 2008 +0000
+++ b/lisp/ChangeLog	Sun Feb 10 16:36:07 2008 +0000
@@ -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
--- a/lisp/diff-mode.el	Sun Feb 10 14:04:01 2008 +0000
+++ b/lisp/diff-mode.el	Sun Feb 10 16:36:07 2008 +0000
@@ -489,6 +489,7 @@
       (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)