[Top][All Lists]

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

Re: diff-mode reports offsets incorrectly

From: Stefan Monnier
Subject: Re: diff-mode reports offsets incorrectly
Date: Tue, 05 Feb 2008 17:23:41 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux)

> I tried it once and it appeared to be the case.  It's quite easy to test:

> 1) Visit a file under CVS control.
> 2) Remove a couple of lines in a couple of places and save it.
> 3) Do cvs-diff, C-x v =, and save the diff-buffer.
> 4) Revert the file, C-x v u.
> 5) Apply the hunks from the diff buffer but don't save them.

> Hunks after the first report an offset.

> 6) If you have Emacs 21, just do 5)

> No offsets are reported.

Hmm... I guess we looked at the other line number in the hunk header.

> I agree that offsets aren't really important but they suggest to me that the
> file to which the patch is being applied is a bit different to the one from
> which it was created.  It just seems tidy to not report offsets in such
> cases, in the same way that "patch <patchfile" doesn't.



reply via email to

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