Re: [O] Apply a patch with a single key press from Gnus

2015-01-23 Thread Charles C. Berry

On Fri, 23 Jan 2015, Sebastien Vauban wrote:


Hello,

I've seen some code to apply Git patches from Gnus [1].

That code should be updated to work for Org-mode, not to say for the
correct paths to my local repo.

Has someone done this already, or are you aware of a standard approach
in Gnus to apply a patch directly from the *Article* buffer?


Did you try navigating to the patch, then typing

   RET C-s diff RET M-x diff-apply-hunk RET

or `diff-ediff-patch'?

On my setup, it prompts for the file, just as it would if I had downloaded 
the patch, opened it in diff-mode, and issued those commands.


HTH,

Chuck



[O] Apply a patch with a single key press from Gnus

2015-01-23 Thread Sebastien Vauban
Hello,

I've seen some code to apply Git patches from Gnus [1].

That code should be updated to work for Org-mode, not to say for the
correct paths to my local repo.

Has someone done this already, or are you aware of a standard approach
in Gnus to apply a patch directly from the *Article* buffer?

Best regards,
  Seb

[1] http://blog.printf.net/articles/2010/10/04/git-patches-in-gnus/

-- 
Sebastien Vauban