From mboxrd@z Thu Jan 1 00:00:00 1970 From: Roland Donat Subject: Re: How to pass named table reference in source block variable Date: Wed, 7 Aug 2013 08:28:17 +0000 (UTC) Message-ID: References: <87mwou1mu6.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60371) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V6z6q-0002ot-IZ for emacs-orgmode@gnu.org; Wed, 07 Aug 2013 04:28:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V6z6i-0001FU-Tw for emacs-orgmode@gnu.org; Wed, 07 Aug 2013 04:28:44 -0400 Received: from plane.gmane.org ([80.91.229.3]:44679) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V6z6i-0001FA-Nf for emacs-orgmode@gnu.org; Wed, 07 Aug 2013 04:28:36 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1V6z6h-0001tD-F0 for emacs-orgmode@gnu.org; Wed, 07 Aug 2013 10:28:35 +0200 Received: from 163.116.6.12 ([163.116.6.12]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 07 Aug 2013 10:28:35 +0200 Received: from roland.donat by 163.116.6.12 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 07 Aug 2013 10:28:35 +0200 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 Thorsten Jolitz 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.