all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Apply a patch with a single key press from Gnus
@ 2015-01-23 13:50 Sebastien Vauban
  2015-01-23 19:28 ` Charles C. Berry
  0 siblings, 1 reply; 2+ messages in thread
From: Sebastien Vauban @ 2015-01-23 13:50 UTC (permalink / raw)
  To: emacs-orgmode-mXXj517/zsQ

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Apply a patch with a single key press from Gnus
  2015-01-23 13:50 Apply a patch with a single key press from Gnus Sebastien Vauban
@ 2015-01-23 19:28 ` Charles C. Berry
  0 siblings, 0 replies; 2+ messages in thread
From: Charles C. Berry @ 2015-01-23 19:28 UTC (permalink / raw)
  To: Sebastien Vauban, Org-Mode mailing list

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-01-23 19:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-23 13:50 Apply a patch with a single key press from Gnus Sebastien Vauban
2015-01-23 19:28 ` Charles C. Berry

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.