emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re:[babel] [Orgmode] Re: What is output for org-babel?


From: Thomas S. Dye
Subject: Re:[babel] [Orgmode] Re: What is output for org-babel?
Date: Fri, 6 Nov 2009 06:15:21 -1000


On Nov 6, 2009, at 2:13 AM, andrea Crotti wrote:

Darlan Cavalcante Moreira <darcamo <at> gmail.com> writes:


However, if the code is sent to the python interpreter as it is, then it
bugs me
why "import os; os.listdir(os.getcwd())" didn't work.

I tried to look at the code of org-babel-python
but it's a bit too complicated to understand how my body
is manipulated...

For the second question I made, it would be even
better to have a mechanism that allows to insert
logical parts of another buffer in my org-mode file.

Something like

#+INCLUDE file.hs::fun_def

Where fun_def is the definition of a function.
programming modes know how to split this kind of things, so
also org-mode could now, right?



_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
address@hidden
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

Hi Andrea,

If I understand your question correctly, there might be several ways to achieve this with existing org-babel functions. Here are two that might work.

1) Establish a :session and make fun_def available there, or
2) Explore the possibilities offered by Library of Babel. This is something I haven't explored yet, but it appears to be designed for the problem you're describing.

HTH,
Tom





reply via email to

[Prev in Thread] Current Thread [Next in Thread]