From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Charles C. Berry" Subject: Re: Apply a patch with a single key press from Gnus Date: Fri, 23 Jan 2015 11:28:29 -0800 Message-ID: References: <86a919mwrs.fsf@example.com> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52637) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YEjvC-0005cX-P0 for emacs-orgmode@gnu.org; Fri, 23 Jan 2015 14:29:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YEjv7-00051k-R9 for emacs-orgmode@gnu.org; Fri, 23 Jan 2015 14:29:34 -0500 Received: from iport-bcv3-out.ucsd.edu ([132.239.0.89]:38063) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YEjv7-0004x7-J1 for emacs-orgmode@gnu.org; Fri, 23 Jan 2015 14:29:29 -0500 In-Reply-To: <86a919mwrs.fsf@example.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org 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