Variable: diff-refine-threshold

diff-refine-threshold is a customizable variable defined in diff-mode.el.gz.

Value

30000

Documentation

Maximum size of diff hunk that can be automatically refined.

If a hunk is larger than that limit, measured in characters, diff-refine is not automatically applied, to avoid pathological cases taking too long. Does not affect the diff-refine-hunk interactive command.

This variable was added, or its default value changed, in Emacs 31.1.

Probably introduced at or before Emacs version 31.1.

Source Code

;; Defined in /usr/src/emacs/lisp/vc/diff-mode.el.gz
(defcustom diff-refine-threshold 30000  ;FIXME: Arbitrary choice.
  ;; FIXME: A better way to handle this would be to do the refinement
  ;; asynchronously, so pathological cases just delay the refinement's display
  ;; but don't freeze Emacs.
  "Maximum size of diff hunk that can be automatically refined.
If a hunk is larger than that limit, measured in characters, `diff-refine'
is not automatically applied, to avoid pathological cases taking too long.
Does not affect the `diff-refine-hunk' interactive command."
  :version "31.1"
  :type 'integer)