[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: |
Robert Pluim |
Subject: |
bug#58516: 28.1; add option/key to rerun current diff without whitespace changes |
Date: |
Mon, 17 Oct 2022 10:49:26 +0200 |
>>>>> On Sat, 15 Oct 2022 22:09:35 +0300, Juri Linkov <juri@linkov.net> said:
>> +(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)))
Juri> A question about performance: would this run the diff command
Juri> for every hunk?
Yes. I donʼt see an easy way to avoid that: we may not have actual
source files available, so we canʼt just run the diff command with
different switches over the whole file.
Robert
--