Function: diff-refine-hunk
diff-refine-hunk is an interactive and byte-compiled function defined
in diff-mode.el.gz.
Signature
(diff-refine-hunk &optional SKIP-IF-LARGE)
Documentation
Highlight changes of hunk at point at a finer granularity.
If SKIP-IF-LARGE is non-nil, obey diff-refine-threshold.
Probably introduced at or before Emacs version 22.1.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/vc/diff-mode.el.gz
(defun diff-refine-hunk (&optional skip-if-large)
"Highlight changes of hunk at point at a finer granularity.
If SKIP-IF-LARGE is non-nil, obey `diff-refine-threshold'."
(interactive)
(when (diff--some-hunks-p)
(save-excursion
(let ((beg (diff-beginning-of-hunk t))
;; Be careful to start from the hunk header so diff-end-of-hunk
;; gets to read the hunk header's line info.
(end (progn (diff-end-of-hunk) (point))))
(diff--refine-hunk beg end skip-if-large)))))