On Sun, 24 Jul 2016, Óscar Fuentes wrote: > Is there a method for applying a patch/diff embedded in a code block? > If by `embedded' you mean that the body of a src block is a patch such as provided by `git format-patch', you could use the language `diff'. `org-edit-src-code' (typing C-c ') with point in the block will open a buffer with the body as its contents in Diff mode. You can use the Diff menu to do various things like apply the patch. When you are done another C-c ' will close the buffer. With some effort, you can follow ob-template.el[1] as a guide to crafting ob-diff.el (say) to allow execution of src blocks, if you think you need to go that far. HTH, Chuck [1] http://orgmode.org/w/worg.git/blob/HEAD:/org-contrib/babel/ob-template.el