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

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

Re: is diff-fixup-modifs supposed to work on regular diff?


From: Stefan Monnier
Subject: Re: is diff-fixup-modifs supposed to work on regular diff?
Date: Sat, 10 Aug 2013 22:58:55 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

> I have been trying to edit diffs, which are in regular <> style, and
> run diff-fixup-modifs.  My goal is to programmatically get rid of
> empty hunks and to renumber edited hunks.

> For this particular purpose, which is not a one-off that can be fixed
> manually but an ongoing need, I cannot use the otherwise superior
> unified or context diff.

diff-fixup-modifs (and most of diff-mode's editing functions such as
the killing of hunks) only works for context diffs, because it does not
preserve line numbers precisely.


        Stefan


reply via email to

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