emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* How to pass a block of text to a code block as data?
@ 2013-02-08 17:06 Michael Baum
  2013-02-08 20:17 ` Sebastien Vauban
  0 siblings, 1 reply; 6+ messages in thread
From: Michael Baum @ 2013-02-08 17:06 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 679 bytes --]

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 <maabaum@gmail.com>

[-- Attachment #2: Type: text/html, Size: 785 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-02-11 22:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-08 17:06 How to pass a block of text to a code block as data? Michael Baum
2013-02-08 20:17 ` Sebastien Vauban
2013-02-09  2:59   ` Michael Baum
2013-02-09 18:49     ` Sean O'Halpin
2013-02-11 21:49       ` Michael Baum
2013-02-11 22:07         ` Eric Schulte

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).