From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Welle Subject: Re: Table formula from code block Date: Tue, 24 Jan 2017 13:14:37 +0100 Message-ID: <87ziig1wpe.fsf@luisa.c0t0d0s0.de> References: <871svuf0dc.fsf@luisa.c0t0d0s0.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49572) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cVzzp-0001Ej-KM for emacs-orgmode@gnu.org; Tue, 24 Jan 2017 07:14:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cVzzm-00041N-Ep for emacs-orgmode@gnu.org; Tue, 24 Jan 2017 07:14:45 -0500 Received: from mout.gmx.net ([212.227.15.18]:57335) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cVzzm-000412-4p for emacs-orgmode@gnu.org; Tue, 24 Jan 2017 07:14:42 -0500 Received: from stella.c0t0d0s0.de ([89.204.139.7]) by mail.gmx.com (mrgmx003 [212.227.17.190]) with ESMTPSA (Nemesis) id 0Lh7PL-1c8GHw04hz-00oSfE for ; Tue, 24 Jan 2017 13:14:39 +0100 Received: from Stella (stella.c0t0d0s0.de [192.168.42.1]) by stella.c0t0d0s0.de (Postfix) with ESMTP id 66973C45FC for ; Tue, 24 Jan 2017 13:14:37 +0100 (CET) In-Reply-To: <871svuf0dc.fsf@luisa.c0t0d0s0.de> (Michael Welle's message of "Mon, 23 Jan 2017 13:04:47 +0100") 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" To: emacs-orgmode@gnu.org Hello, Michael Welle writes: ... > #+NAME: foo > #+BEGIN_SRC emacs-lisp > > (+ 4 4) > #+END_SRC > > > | bar | foo | > |--------+--------| > | 42 | #ERROR | > > #+TBLFM: $2='(org-sbe "foo")::$1=42 > > I'm not sure, what the problem is. Looking at org-sbe there is > something, I don't understand. In the end org-babel-execute-src-block is > called. That executes the _current_ source code block. But I don't > understand, how foo (in this example) becomes the current source code > block. well, the docstring is a bit misleading, IMHO. Current source code block means that the function looks around to find a source code block. I though, it means the source code block 'I am in' at the moment. I've tracked it down to org-babel-check-confirm-evaluate so far. In the let*, export and eval are nil. The 5. element of info is nil, that means (goto-char (nth 5 info)) will barf. Hmm. Regards hmw