From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Baum Subject: How to pass a block of text to a code block as data? Date: Fri, 8 Feb 2013 12:06:32 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=f46d0444ea7dc1ec6504d5399441 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:47514) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U3rPG-0005J0-WE for emacs-orgmode@gnu.org; Fri, 08 Feb 2013 12:06:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U3rPF-0004kv-Ki for emacs-orgmode@gnu.org; Fri, 08 Feb 2013 12:06:34 -0500 Received: from mail-oa0-f51.google.com ([209.85.219.51]:63697) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U3rPF-0004kk-FC for emacs-orgmode@gnu.org; Fri, 08 Feb 2013 12:06:33 -0500 Received: by mail-oa0-f51.google.com with SMTP id h2so4285322oag.10 for ; Fri, 08 Feb 2013 09:06:32 -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 --f46d0444ea7dc1ec6504d5399441 Content-Type: text/plain; charset=ISO-8859-1 I haven't been able to figure this out from the org-mode documents yet. What I would like to do is have a source code block in python or perl or something similar. to which I can pass a reference to several lines of text that the source code block, when evaluated, would then act on. Which would involve iterating through the data text one line at a time and writing the output to a buffer. The text data could be indicated by a specific headline or a named block of some sort or maybe an internal link, I'm not particularly fussy just so there's a mechanism to do this. Would appreciate any guidance. -- ==================================== Michael Baum --f46d0444ea7dc1ec6504d5399441 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I haven't been able to figure this out from the org-mode documents yet.= What I would like to do is have a source code block in python or perl or s= omething similar. to which I can pass a reference to several lines of text = that the source code block, when evaluated, would then act on. Which would = involve iterating through the data text one line at a time and writing the = output to a buffer.

The text data could be indicated by a specific headline or a named bloc= k of some sort or maybe an internal link, I'm not particularly fussy ju= st so there's a mechanism to do this.

Would appreciate any guida= nce.

--
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Michael Baum <maabaum@gmail.com>

--f46d0444ea7dc1ec6504d5399441--