> diff --git a/t.txt b/t.txt
> index f27f040..27bd94f 100644
> --- a/t.txt
> +++ b/t.txt
>  -1 +1,2 
> first line.
> +
> (available from: http://www.logic.a
t/prolog/t.patch )
> and, in the same directory, t.txt with the following
content:
> first line.
> (available from: http://www.logic.at/
prolog/t.txt )
> and do C-c C-a on the first and only hunk of t.patch,
the patch is
> applied. When I then do C-c C-a, another new line is
unexpectedly
> inserted at the end of t.txt. Arbitrarily many, if
repeated.
Why would that be a bug? The patch doesn't say that it is
at the end of
the file, so all it says is "add an empty line after
the line `first
line'". You may argue that the lack of context is an
indication that
it's meant to be at the end-of-file, but that lack of
context may be due
to something else.
Furthermore, the same kind of problem can happen even with
3-lines of
context, such that after applying the patch, the new file's
content
still contains the pattern required for the patch be
applied.
Stefan
|