Function: diff-refine-hunk
diff-refine-hunk is an interactive and byte-compiled function defined
in diff-mode.el.gz.
Signature
(diff-refine-hunk)
Documentation
Highlight changes of hunk at point at a finer granularity.
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 ()
"Highlight changes of hunk at point at a finer granularity."
(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)))))