From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carlos Henrique Machado S Esteves Subject: [PATCH] org-babel-execute-src-block-region Date: Sun, 1 Nov 2015 21:17:24 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=001a114402c0cab7bc0523856059 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41585) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zt4gZ-00035a-5q for emacs-orgmode@gnu.org; Sun, 01 Nov 2015 21:17:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zt4gX-0005Bk-VW for emacs-orgmode@gnu.org; Sun, 01 Nov 2015 21:17:27 -0500 Received: from mail-vk0-x235.google.com ([2607:f8b0:400c:c05::235]:35813) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zt4gX-0005Bf-R7 for emacs-orgmode@gnu.org; Sun, 01 Nov 2015 21:17:25 -0500 Received: by vkfw189 with SMTP id w189so77141300vkf.2 for ; Sun, 01 Nov 2015 18:17:25 -0800 (PST) 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: emacs-orgmode@gnu.org --001a114402c0cab7bc0523856059 Content-Type: multipart/alternative; boundary=001a114402c0cab7b50523856057 --001a114402c0cab7b50523856057 Content-Type: text/plain; charset=UTF-8 Hello, I find it useful to be able to execute only a region of a source code block, so I've implemented a new function for that. I've tested it with MATLAB and Python, but it should work for any mode, since it calls org-babel-execute-src-block. Thanks, Carlos --001a114402c0cab7b50523856057 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello, I find it useful to be able to execute on= ly a region of a source code block, so I've implemented a new function = for that. I've tested it with MATLAB and Python, but it should work for= any mode, since it calls org-babel-execute-src-block.

Thanks,=

Carlos
--001a114402c0cab7b50523856057-- --001a114402c0cab7bc0523856059 Content-Type: text/x-patch; charset=US-ASCII; name="0001-ob-core.el-Allow-execution-of-region-of-source-code-.patch" Content-Disposition: attachment; filename="0001-ob-core.el-Allow-execution-of-region-of-source-code-.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_ighbc6ie0 RnJvbSBkM2Y2N2ZiMGYzNzY2N2FmMzlhMzBjNTI3MjIxYTQzZWEzNzk5OWE5IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBDYXJsb3MgSE1TIEVzdGV2ZXMgPGNoLm1hY2hhZG8uZXN0ZXZl c0BnbWFpbC5jb20+CkRhdGU6IFN1biwgMSBOb3YgMjAxNSAyMDo1MjoyNiAtMDUwMApTdWJqZWN0 OiBbUEFUQ0hdIG9iLWNvcmUuZWw6IEFsbG93IGV4ZWN1dGlvbiBvZiByZWdpb24gb2Ygc291cmNl IGNvZGUgYmxvY2sKCiogb2ItY29yZS5lbCAob3JnLWJhYmVsLWV4ZWN1dGUtc3JjLWJsb2NrLXJl Z2lvbik6IEV4ZWN1dGUgb25seSBhY3RpdmUgcmVnaW9uIG9mCnRoZSBjdXJyZW50IHNvdXJjZSBi bG9jay4gIFNhbWUgYXMgYG9yZy1iYWJlbC1leGVjdXRlLXNyYy1ibG9jaycsIGJ1dAp1c2Ugb25s eSB0aGUgYWN0aXZlIHJlZ2lvbiBpbnN0ZWFkIG9mIHRoZSB3aG9sZSBibG9jay4KClRJTllDSEFO R0UKLS0tCiBsaXNwL29iLWNvcmUuZWwgfCA5ICsrKysrKysrKwogMSBmaWxlIGNoYW5nZWQsIDkg aW5zZXJ0aW9ucygrKQoKZGlmZiAtLWdpdCBhL2xpc3Avb2ItY29yZS5lbCBiL2xpc3Avb2ItY29y ZS5lbAppbmRleCA1MWEzNGYzLi45OGVkNjllIDEwMDY0NAotLS0gYS9saXNwL29iLWNvcmUuZWwK KysrIGIvbGlzcC9vYi1jb3Jl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