From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: Possible Calc support for Org-Babel? Date: Fri, 29 Oct 2010 08:43:51 -0600 Message-ID: <87y69ht5f5.fsf@gmail.com> References: <7CDB7386-9B39-46CB-94E8-C6B5CBD59C4F@me.com> <87mxq0ajgw.fsf@gmail.com> <87zktxv6s2.fsf@gmail.com> <87y69h8d4t.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=52685 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PBqMg-0005XH-0l for emacs-orgmode@gnu.org; Fri, 29 Oct 2010 10:55:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PBqMO-0004Tu-Et for emacs-orgmode@gnu.org; Fri, 29 Oct 2010 10:55:17 -0400 Received: from mail-pz0-f41.google.com ([209.85.210.41]:43057) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PBqMO-0004TK-AJ for emacs-orgmode@gnu.org; Fri, 29 Oct 2010 10:55:16 -0400 Received: by pzk30 with SMTP id 30so138582pzk.0 for ; Fri, 29 Oct 2010 07:55:14 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Eric S Fraga Cc: emacs-orgmode@gnu.org, Matthew Oesting Eric S Fraga writes: > Eric, > > This is really nice! > > I had a problem initially in that calc-push-list was undefined. I had > to initiate calc first so maybe a > > : (require 'calc) > Ah yes, that is in the ob-calc.el file, but not in the code snippet I shared. I'll commit this entire file to the repository. > > is required to ensure the functions you use are available? > > Then, out of the three examples you give, only one (3^3) worked. The > others give me: > I just made a change which should fix this issue. > > Debugger entered--Lisp error: (wrong-type-argument stringp (2 >"Expected a number")) [...] > > Have I done something wrong? > > I am particularly excited, once it works for me, to use this for > /inline/ babel executions! > Great. I'd be particularly interested if there are more natural or "idiomatic calc" ways to interact with Calc through a code block than the one implemented here. Cheers -- Eric > > Thanks, > eric