>>>> On 07 Apr 2002 21:09:35 +0300, Ville Skyttä
<ville.skytta(a)xemacs.org> said:
Ville> On Sun, 2002-04-07 at 20:18, James LewisMoss wrote:
> >> So I accidentally hit M-R in diff mode and it attempted
to
> >> reverse the patch, but it didn't take into account the --- and
> >> +++ and just swapped the first chars making +-- and -++. Which
> >> afaik isn't a valid patch. While I was messing with
> >> diff-reverse-direction I noticed that it only works on the
> >> region when you give it a prefix arg which is not what I've
> >> come to expect. So here's the patch:
Ville> [...]
Ville> I would appreciate it if you could test if the CVS version (or
Ville> when an experimental prog-modes package is available, that)
Ville> still has this bug, and post an updated patch if it does.
>
> OK. Checked out the "packages" project from xemacs cvs. Here's
> an updated patch. I tested the diff-mode.el from cvs for the same
> bug and it's still there. Please use the changelog entry from the
> last message it's still appropriate.
Ville> [...]
Ville> Thanks again, the patch applies ok now. However, I could not
Ville> reproduce the problem you described with the non-patched
Ville> diff-mode, though I only tried with the patch you sent for it.
Ville> OTOH, the patch didn't seem to break anything.
I've attached the patch file I tested it with. It's a portion of the
.diff.gz generated for a debian package.
Ville> If possible, I'd like to see a sample diff/patch where the
Ville> problem occurs; could you send me one (and Cc:
Ville> xemacs-beta(a)xemacs.org)? I'll put your diff-mode patch on
Ville> hold for this.
Ville> Additionally, since the XEmacs diff-mode.el is now essentially
Ville> same as the GNU Emacs 21.2 one, I suspect they might have
Ville> these problems too, and think they'd be grateful for a patch
Ville> as well :)
Is the author in diff-mode.el an appropriate place to send it?
Jim
--
@James LewisMoss <dres(a)debian.org> | Blessed Be!
@
http://jimdres.home.mindspring.com | Linux is kewl!
@"Argue for your limitations and sure enough, they're yours." Bach