]> git.eshelyaron.com Git - emacs.git/commitdiff
(diff-hunk-kill): Fix the search of the next hunk (bug#4368).
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 9 Sep 2009 14:47:54 +0000 (14:47 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 9 Sep 2009 14:47:54 +0000 (14:47 +0000)
lisp/ChangeLog
lisp/diff-mode.el

index a173f58335a0c8fe403a02efdb6692346d23a83e..d030d24304e1e9ecb6405bf9c0a0838f8b8500ac 100644 (file)
@@ -1,3 +1,8 @@
+2009-09-09  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * diff-mode.el (diff-hunk-kill): Fix the search of the next hunk
+       (bug#4368).
+
 2009-09-09  Katsumi Yamaoka  <yamaoka@jpl.org>
 
        * calendar/time-date.el (autoload):
index 56bcde521ac62850194cc2991444fbf92fbcac3c..93a8a418806d3e01ff64780b7c9d210e0181d573 100644 (file)
@@ -546,7 +546,8 @@ If the prefix ARG is given, restrict the view to the current file instead."
   (interactive)
   (diff-beginning-of-hunk)
   (let* ((start (point))
-        (nexthunk (when (re-search-forward diff-hunk-header-re nil t)
+         ;; Search the second match, since we're looking at the first.
+        (nexthunk (when (re-search-forward diff-hunk-header-re nil t 2)
                     (match-beginning 0)))
         (firsthunk (ignore-errors
                      (goto-char start)