Function: diff-ignore-whitespace-hunk

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

Signature

(diff-ignore-whitespace-hunk &optional WHOLE-BUFFER)

Documentation

Re-diff the current hunk, ignoring whitespace differences.

With non-nil prefix arg, re-diff all the hunks.

View in manual

Probably introduced at or before Emacs version 30.1.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/vc/diff-mode.el.gz
(defun diff-ignore-whitespace-hunk (&optional whole-buffer)
  "Re-diff the current hunk, ignoring whitespace differences.
With non-nil prefix arg, re-diff all the hunks."
  (interactive "P")
  (if whole-buffer
      (diff--ignore-whitespace-all-hunks)
    (diff-refresh-hunk t)))