emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Charles C. Berry" <ccberry@ucsd.edu>
To: Sebastien Vauban
	<public-sva-news-D0wtAvR13HarG/iDocfnWg@plane.gmane.org>,
	Org-Mode mailing list <emacs-orgmode@gnu.org>
Subject: Re: Apply a patch with a single key press from Gnus
Date: Fri, 23 Jan 2015 11:28:29 -0800	[thread overview]
Message-ID: <alpine.OSX.2.00.1501231122350.528@charles-berrys-macbook.local> (raw)
In-Reply-To: <86a919mwrs.fsf@example.com>

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

      reply	other threads:[~2015-01-23 19:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.OSX.2.00.1501231122350.528@charles-berrys-macbook.local \
    --to=ccberry@ucsd.edu \
    --cc=emacs-orgmode@gnu.org \
    --cc=public-sva-news-D0wtAvR13HarG/iDocfnWg@plane.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).