bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#58516: 28.1; add option/key to rerun current diff without whitespac


From: Juri Linkov
Subject: bug#58516: 28.1; add option/key to rerun current diff without whitespace changes
Date: Sat, 15 Oct 2022 22:09:35 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu)

> +(defun diff-ignore-whitespace-all-hunks ()
> +  "Re-diff all the hunks, ignoring whitespace-differences."
> +  (interactive)
> +  (diff--iterate-hunks (point-max) (lambda (_ _)
> +                                     (diff-refresh-hunk t))
> +                       (point-min)))

A question about performance: would this run the diff command
for every hunk?





reply via email to

[Prev in Thread] Current Thread [Next in Thread]