From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: Possible Calc support for Org-Babel? Date: Sat, 30 Oct 2010 21:54:58 +0100 Message-ID: <87zktv7659.fsf@ucl.ac.uk> References: <7CDB7386-9B39-46CB-94E8-C6B5CBD59C4F@me.com> <87mxq0ajgw.fsf@gmail.com> <87zktxv6s2.fsf@gmail.com> <87y69h8d4t.fsf@ucl.ac.uk> <87y69ht5f5.fsf@gmail.com> <87tyk4epxl.fsf@ucl.ac.uk> <87k4l07njv.fsf@gmail.com> <87hbg4pooh.fsf@ucl.ac.uk> <871v7879x5.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=40251 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PCISH-0005C9-DW for emacs-orgmode@gnu.org; Sat, 30 Oct 2010 16:55:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PCISG-0002jh-9M for emacs-orgmode@gnu.org; Sat, 30 Oct 2010 16:55:13 -0400 Received: from vscane-a.ucl.ac.uk ([144.82.108.41]:37586) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PCISG-0002jN-5A for emacs-orgmode@gnu.org; Sat, 30 Oct 2010 16:55:12 -0400 In-Reply-To: <871v7879x5.fsf@gmail.com> (Eric Schulte's message of "Fri, 29 Oct 2010 19:21:10 -0600") 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 Schulte Cc: emacs-orgmode@gnu.org, Matthew Oesting "Eric Schulte" writes: > alright, thanks for sticking with this. You are definitely now using > the latest code. I believe the newest version of the ob-calc-eval > function should work -- at the very least it should give a nicer error > message. Could you please require update again and let me know how it > goes? (for the list's benefit: Eric and I have had a few out-of-the-list exchanges but as everything now seems to be working fine, I thought I'd reconnect the thread to the list...) Eric, just to confirm that it all seems to work just fine from a cold boot of emacs without any extra (require 'ob-eval). My babel configuration has the following: #+begin_src emacs_lisp (org-babel-do-load-languages 'org-babel-load-languages '((R . t) (calc . t) (ditaa . t) ... #+end_src and that's about it really. Evaluating the calc examples you sent initially all work perfectly. Using src_calc{5-2}, for instance, also works just fine for export. I now wonder if it would be worthwhile discussing the choices you have made regarding stack versus algebraic evaluation. I would rather have the quote mean an algebraic expression, just from the simple reason that these will be longer than stack operations and so the overhead of a quote is smaller as a percentage of keystrokes... Anyway, thanks for this. I think this is going to be quite useful but it does mean really getting down and learning emacs calc... -- Eric S Fraga GnuPG: 8F5C 279D 3907 E14A 5C29 570D C891 93D8 FFFC F67D