From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrea Rossetti Subject: Re: Babel evaluation of Calc block not working, bug in Calc? Date: Mon, 29 Sep 2014 01:56:16 +0200 Message-ID: <84ppefuwnz.fsf@gmail.com> References: <8738bkb0fh.fsf@vsl28t2g.ww011> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36011) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XYOKY-0000r9-Ci for emacs-orgmode@gnu.org; Sun, 28 Sep 2014 19:56:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XYOKS-00034P-HQ for emacs-orgmode@gnu.org; Sun, 28 Sep 2014 19:56:42 -0400 Received: from plane.gmane.org ([80.91.229.3]:55176) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XYOKS-000347-Af for emacs-orgmode@gnu.org; Sun, 28 Sep 2014 19:56:36 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XYOKL-000207-Lm for emacs-orgmode@gnu.org; Mon, 29 Sep 2014 01:56:29 +0200 Received: from net-93-147-67-182.cust.dsl.teletu.it ([93.147.67.182]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 29 Sep 2014 01:56:29 +0200 Received: from andrea.rossetti by net-93-147-67-182.cust.dsl.teletu.it with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 29 Sep 2014 01:56:29 +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 dieter@duenenhof-wilhelm.de (H. Dieter Wilhelm) writes: > But now we are getting: byte-code: Symbol's function definition is void: > v! > > #+BEGIN_SRC calc :var v=3 > v + 4 > #+END_SRC > Hello Dieter, I think I got it! 1) I see the same error message as you see, for variables with name "v" or "var" 2) diagnosys: I see that Calc tries to avoid name collisions by adding a "var-" prefix to variable names, and by removing it when it needs to. (see code in functions "calc-read-var-name" and "calc-var-name") 3) temporary workaround: try to change ":var v=3" into ":var var-v=3", it works for me, does it work for you too? 4) proposed correction (untested, and makes sense only if workaround actually works): in ob-calc.el, function org-babel-execute:calc, the invocation of "calc-store-into" could prepend 'var- to its argument 5) warning: if one applies correction 4), then workaround 3) doesn't work anymore Hope it helps and makes sense for you too, kindest regards. Andrea