Re: [O] [tables, babel] evaluate code block in table with arguments

2011-07-26 Thread Dirk Scharff
Hi Sebastien, thanks for pointing me to that macro. $3='(sbe the_test( x $< )) does exactly what I wanted. best regards, Dirk On Tue, Jul 26, 2011 at 2:12 PM, Sebastien Vauban < wxhgmqzgw...@spammotel.com> wrote: > Hi Dirk, > > Dirk Scharff wrote: > > I want t

[O] [tables, babel] evaluate code block in table with arguments

2011-07-26 Thread Dirk Scharff
Hi all, I want to use a code-block in a table and can't get it to work. Consider the following example: #+Source: the_test #+begin_src python :var x=3 :results output print x #+end_src | argument | argument | result | |1 |

Re: [O] Ruby on Aquamacs

2011-07-22 Thread Dirk Scharff
Hi Juri I guess you are kind of wrong here, because this list deals with org-mode for emacs, not with ruby or emacs in general. But to give you a starting point I'd suggest you read this http://stackoverflow.com/questions/2429373/tips-and-tricks-for-using-emacs-to-develop-a-ruby-on-rails-app .

Re: [O] Need control over insertion point of variables in code blocks

2011-07-22 Thread Dirk Scharff
Hi Bastien, thanks for pointing that out to me, I'm still new here and to org-mode in general (and I really like it!) ;) I'll do that in the future. While a better solution to this would be nice, I'll not append this to this subject this time because I don't want to mess up the topic struct

Re: [O] Need control over insertion point of variables in code blocks

2011-07-22 Thread Dirk Scharff
Hi Am 22.07.2011 um 09:34 schrieb Rainer M Krug: > For tangling: you could put from __future__ imports into the :shebang and > use padline ":padline no", i.e.: > > #+source: the_test > #+begin_src python :var x=3 :tangle test.py :results output :shebang from > __future__ imports :padline no

[O] Need control over insertion point of variables in code blocks

2011-07-22 Thread Dirk Scharff
Hi i just noticed that variables are assigned in the top of the exported code. That can be problematic in some situations: #+source: the_test #+begin_src python :var x=3 :tangle test.py :results output from __future__ import division print x #+end_src tangling results in: x=3 from __future__

Re: [O] Wrong type argument listp on export

2011-07-21 Thread Dirk Scharff
Hi, thanks for pointing that out, while I pulled, used make and restarted emacs, I skipped on a "make clean" before compiling again. I recompiled org-mode again (this time with "clean") and it works now. Am 21.07.2011 um 22:55 schrieb Nick Dokos: > Dirk Scharf

Re: [O] [feature request] tangle on org-special-edit

2011-07-21 Thread Dirk Scharff
Sorry, I forgot to forward this Mail to the list. regards, Dirk. Anfang der weitergeleiteten E-Mail: > Von: Dirk Scharff > Betreff: Re: [O] [feature request] tangle on org-special-edit > Datum: 21. Juli 2011 22:32:13 MESZ > An: Eric Schulte > > Hi Eric, > > playin

Re: [O] Wrong type argument listp on export

2011-07-21 Thread Dirk Scharff
)) wrap-prefix #(" " 0 2 (face org-indent))) 55 64 (fontified t font-lock-fontified t font-lock-multiline t face org-block line-prefix #(" " 0 2 (face org-indent)) wrap-prefix #(" " 0 2 (face org-indent))) 64 65 (fontified t font-lock-fontified t font-lock-multiline

Re: [O] [feature request] tangle on org-special-edit

2011-07-21 Thread Dirk Scharff
On Thu, Jul 21, 2011 at 7:19 PM, Eric Schulte wrote: > Dirk Scharff writes: > > > Hello, > > > > Org-mode provides the function to edit code blocks in their languages > > native environment. If you want do literate programming you'll end up > > with we

[O] [feature request] tangle on org-special-edit

2011-07-21 Thread Dirk Scharff
Hello, Org-mode provides the function to edit code blocks in their languages native environment. If you want do literate programming you'll end up with web-syntax (<> ) in the environment org-special-edit started. I'd like to purpose, that before opening the special language environment, the

Re: [O] problems with org-edit-special and python

2011-07-21 Thread Dirk Scharff
Hi Bastien, On Thu, Jul 21, 2011 at 11:58 AM, Bastien wrote: > Hi Dirk, > > Dirk Scharff writes: > > > When I try to run org-edit-special (C-c ') in the python source block an > > empty buffer is opened as expected. My mini-buffer states the following: > >

[O] Wrong type argument listp on export

2011-07-20 Thread Dirk Scharff
Hello, I narrowed down my problem to the following short example: * My Test Block This is a test #+source testblock #+begin_src python :var x=3 :exports both :results output print x*x #+end_src executing the source-bock yields the correct result. When exporting this file however I get the

[O] problems with org-edit-special and python

2011-07-19 Thread Dirk Scharff
Hi all! I'm fairly new to emacs (and org-mode :)), so I'm sorry in advance for eventually missing something completely obvious. While I kind of expect my problem to be something with my emacs setup it does only happen with org-mode so I'm posting it here. My test file (for learning purposes) c

[O] problems with org-edit-special and python (2nd try to post)

2011-07-19 Thread Dirk Scharff
Hey, I tried to post this yesterday and it doesn't seem like it worked by now (I didn't see it showing up on the news interface). I'm sorry if this ends up being a double post! Hi all! I'm fairly new to emacs (and org-mode :)), so I'm sorry in advance for eventually missing something complet