From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: Possible Calc support for Org-Babel? Date: Tue, 01 Mar 2011 20:10:36 +0000 Message-ID: <87lj0yy537.fsf@ucl.ac.uk> References: <878w1ani4w.fsf@ucl.ac.uk> <87eib1dxll.fsf@gmail.com> <87hbcvnpr4.fsf@dustycloud.org> <87zkpn8j10.fsf@gmail.com> <87fwrdoi43.fsf@pinto.chemeng.ucl.ac.uk> <87lj1188pe.fsf@gmail.com> <87oc5wvxbm.fsf@ucl.ac.uk> <87vd024u2q.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=56707 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PuVuE-0003eQ-DH for emacs-orgmode@gnu.org; Tue, 01 Mar 2011 15:10:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PuVuD-0003yU-0O for emacs-orgmode@gnu.org; Tue, 01 Mar 2011 15:10:50 -0500 Received: from vscane-b.ucl.ac.uk ([144.82.108.141]:56237) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PuVuC-0003yJ-Qa for emacs-orgmode@gnu.org; Tue, 01 Mar 2011 15:10:48 -0500 In-Reply-To: <87vd024u2q.fsf@gmail.com> (Eric Schulte's message of "Tue, 01 Mar 2011 10:34:07 -0700") 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, I've made two changes, first, it is now possible to pass elisp > vectors through to code blocks, e.g., > > #+begin_src emacs-lisp :var data=[1 2 3] > (elt data 1) > #+end_src > #+results: > : 2 > > Second, I've added a slightly hackey but seemingly necessary > post-processing step to a call to calc-eval in ob-calc to remove quotes > from vectors. This allows vector processing to take place---at least as > far as my limited calc knowledge is concerned. For example; > > #+begin_src calc :var y=[1 2 3] > 3 y > #+end_src > #+results: > : [3, 6, 9] > > Hope this helps -- Cheers -- Eric It does indeed. It all seems to work just fine now. I don't necessarily know much more emacs calc than you but the little I know seems to work just fine. It's such a powerful package sitting there mostly idle and org babel is probably the best way to release it for general use! Especially for inline calculations... Time to re-read the calc manual again and play. Thanks, eric -- Eric S Fraga (: http://www.homepages.ucl.ac.uk/~ucecesf/ :)