Variable: diff-auto-refine-mode-hook
diff-auto-refine-mode-hook is a customizable variable defined in
diff-mode.el.gz.
Value
nil
Documentation
Hook run after entering or leaving diff-auto-refine-mode(var)/diff-auto-refine-mode(fun).
No problems result if this variable is not bound.
add-hook automatically binds it. (This is true for all hook variables.)
Source Code
;; Defined in /usr/src/emacs/lisp/vc/diff-mode.el.gz
(define-minor-mode diff-auto-refine-mode
"Toggle automatic diff hunk finer highlighting (Diff Auto Refine mode).
Diff Auto Refine mode is a buffer-local minor mode used with
`diff-mode'. When enabled, Emacs automatically highlights
changes in detail as the user visits hunks. When transitioning
from disabled to enabled, it tries to refine the current hunk, as
well."
:group 'diff-mode :init-value nil :lighter nil ;; " Auto-Refine"
(if diff-auto-refine-mode
(progn
(customize-set-variable 'diff-refine 'navigation)
(condition-case-unless-debug nil (diff-refine-hunk) (error nil)))
(customize-set-variable 'diff-refine nil)))