Ar an t-aonú lá déag de mí Eanair, scríobh Didier Verna:
Aidan Kehoe <kehoea(a)parhasard.net> wrote:
> I deleted a call to the macro cl-parsing-keywords, which wrapped most
> of a function body. This also necessitated renaming some variables
> used within the function body; so the diff without whitespace changes
> looked like the below. The diff once the indentation had been
> corrected looked much as if I had rewritten the entire function, which
> wasn’t a close reflection of what I did.
> (This isn’t directly Patcher’s issue, and a general solution to it
> would probably go beyond Lisp, and would be included in the diff
> command. But I’m not aware of any such general solution or any
> prospects of one.)
If you look at patcher-built-in-themes, you will find themes postfixed
with -ws (for whitespace) with diff commands tweaked to skip
whitespace-only differences in the diffs output.
Ah, that’s actually very helpful. Thanks!
(On experimentation, odd how it preserves whitespace in some places, but not
others; I suppose removing newlines would make the algorithm more
“Apart from the nine-banded armadillo, man is the only natural host of
Mycobacterium leprae, although it can be grown in the footpads of mice.”
-- Kumar & Clark, Clinical Medicine, summarising improbable leprosy research
XEmacs-Beta mailing list