emacs-devel
[Top][All Lists]
Advanced

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

Re: diff-apply-hunk documentation doesn't match implementation


From: Andreas Schwab
Subject: Re: diff-apply-hunk documentation doesn't match implementation
Date: Mon, 12 Mar 2007 20:19:27 +0100
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.91 (gnu/linux)

Stefan Monnier <address@hidden> writes:

> In your case, the patch specifies two files which diff-mode can both find,
> yet, the patch is not between those two files (at least in your test case,
> the two files are just the same, presumably one being a "working tree" and
> the other being basically unrelated).

The patch is relative to an older version of the file, my intention was to
find out which parts of it have already been applied, and apply those that
aren't (and some hunks need editing to apply, so I couldn't just ignore
the rejects).

> Is your test case very representative, or are there many other different
> cases where you bump into the same problem?

It's actually the first time I used that feature.  For me this behaviour
was very confusing, even before I read the doc string of diff-apply-hunk.
Especially more so because it also automatically moves forward so that the
effect is not immediately visible.

Andreas.

-- 
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




reply via email to

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