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: Stefan Monnier
Subject: Re: diff-apply-hunk documentation doesn't match implementation
Date: Sun, 11 Mar 2007 17:54:08 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.95 (gnu/linux)

> The doc string of diff-apply-hunk says:
>   By default, the new source file is patched, but if the variable
>   `diff-jump-to-old-file' is non-nil, then the old source file is
>   patched instead

> But the implementation then goes on to do the opposite:

>       ;; If REVERSE go to the new file, otherwise go to the old.
>       (diff-find-source-location (not reverse) reverse)

This is just one part of the implementation.  The behavior is actually
pretty subtle (too subtle, admittedly).  So I can't judge without knowing
which end-user-level behavior you're referring to.

I.e. give me a recipe.


        Stefan




reply via email to

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