emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] How to pass named table reference in source block variable


From: Roland Donat
Subject: Re: [O] How to pass named table reference in source block variable
Date: Wed, 7 Aug 2013 08:28:17 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

Thorsten Jolitz <tjolitz <at> gmail.com> writes:

> 
> This does the job in Emacs Lisp:
> 
>  #+TBLNAME: T
>  |   | x | 1     |
>  | ^ |   | varx  |
> 
> #+begin_src emacs-lisp :var x=T[0,-1]
>  x
> #+end_src
> 
> #+results:
> : 1
> 

Thanks for the answer but in fact, my objective is precisely to avoid using 
the indices of the value I want to pass as input of the code block.

My goal is to use the cell name reference "varx" which would make the code 
block simpler to maintain. Indeed, if I add new data on the top of table T, 
I wouldn't have to change the reference in the code block since the name 
reference is fixed.










reply via email to

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