Function: diff-next-complex-hunk

diff-next-complex-hunk is an interactive and byte-compiled function defined in diff-mode.el.gz.

Signature

(diff-next-complex-hunk)

Documentation

Jump to the next "complex" hunk.

"Complex" is approximated by "the hunk changes the number of lines".
Only works for unified diffs.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/vc/diff-mode.el.gz
;;;
;;; Misc operations that have proved useful at some point.
;;;

(defun diff-next-complex-hunk ()
  "Jump to the next \"complex\" hunk.
\"Complex\" is approximated by \"the hunk changes the number of lines\".
Only works for unified diffs."
  (interactive)
  (while
      (and (re-search-forward diff-hunk-header-re-unified nil t)
	   (equal (match-string 2) (match-string 4)))))