[O] Re: [Orgmode] Possible Calc support for Org-Babel?

2011-03-07 Thread Eric S Fraga
"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 nece

[O] Re: [Orgmode] Possible Calc support for Org-Babel?

2011-03-01 Thread Eric S Fraga
"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 neces

[O] Re: [Orgmode] Possible Calc support for Org-Babel?

2011-03-01 Thread Eric Schulte
Eric S Fraga writes: > "Eric Schulte" writes: > >> Eric S Fraga writes: > > [...] > >>> >>> Further on this, any suggestions on how to pass a vector variable to >>> calc using babel? I tried >>> >>> #+begin-src org >>> #+begin_src calc :var y=[1 2 3] >>> 3 y >>> #+end_src >>> #+end_src >>>

[O] Re: [Orgmode] Possible Calc support for Org-Babel?

2011-02-28 Thread Eric S Fraga
"Eric Schulte" writes: > Eric S Fraga writes: [...] >> >> Further on this, any suggestions on how to pass a vector variable to >> calc using babel? I tried >> >> #+begin-src org >> #+begin_src calc :var y=[1 2 3] >> 3 y >> #+end_src >> #+end_src >> >> but get an error that says >> >> : Ba

Re: [Orgmode] Possible Calc support for Org-Babel?

2011-02-27 Thread Eric Schulte
Eric S Fraga writes: > "Eric Schulte" writes: > >> Christopher Allan Webber writes: >> >>> (failed to wide-reply initially) >>> >>> I just had use for this for some quick calculations I wanted to add to >>> one of my files, but... >>> >>> Any idea why variables inside of parentheses don't work,

Re: [Orgmode] Possible Calc support for Org-Babel?

2011-02-24 Thread Eric S Fraga
"Eric Schulte" writes: > Christopher Allan Webber writes: > >> (failed to wide-reply initially) >> >> I just had use for this for some quick calculations I wanted to add to >> one of my files, but... >> >> Any idea why variables inside of parentheses don't work, but variables >> outside of them

Re: [Orgmode] Possible Calc support for Org-Babel?

2011-02-22 Thread Eric Schulte
Christopher Allan Webber writes: > (failed to wide-reply initially) > > I just had use for this for some quick calculations I wanted to add to > one of my files, but... > > Any idea why variables inside of parentheses don't work, but variables > outside of them do? > > #+BEGIN_SRC calc :var testv

Re: [Orgmode] Possible Calc support for Org-Babel?

2011-01-26 Thread Christopher Allan Webber
(failed to wide-reply initially) I just had use for this for some quick calculations I wanted to add to one of my files, but... Any idea why variables inside of parentheses don't work, but variables outside of them do? #+BEGIN_SRC calc :var testvar=9000 testvar - 200 #+END_SRC #+results: : 8800

Re: [Orgmode] Possible Calc support for Org-Babel?

2010-11-04 Thread Eric S Fraga
"Eric Schulte" writes: > Alright, > > I've just pushed up support for variables. The following should all > work as expected (or at least as I would expect them to). Note that > most all of these blocks would have an effect on the calc stack. I > think the next step would be to allow different

Re: [Orgmode] Possible Calc support for Org-Babel?

2010-11-04 Thread Eric Schulte
Alright, I've just pushed up support for variables. The following should all work as expected (or at least as I would expect them to). Note that most all of these blocks would have an effect on the calc stack. I think the next step would be to allow different sessions to specify different stack

Re: [Orgmode] Possible Calc support for Org-Babel?

2010-11-03 Thread Eric S Fraga
Forgot to CC the list et al. "Eric Schulte" writes: > Eric S Fraga writes: [...] >> 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

Re: [Orgmode] Possible Calc support for Org-Babel?

2010-11-03 Thread Eric Schulte
Eric S Fraga writes: > "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 req

Re: [Orgmode] Possible Calc support for Org-Babel?

2010-10-30 Thread Eric S Fraga
"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

Re: [Orgmode] Possible Calc support for Org-Babel?

2010-10-29 Thread Eric Schulte
Eric S Fraga writes: > "Eric Schulte" writes: > >> 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-ca

Re: [Orgmode] Possible Calc support for Org-Babel?

2010-10-29 Thread Eric S Fraga
"Eric Schulte" writes: > 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

Re: [Orgmode] Possible Calc support for Org-Babel?

2010-10-29 Thread Eric Schulte
Just FYI, I've just pushed up another fix for ob-calc.el which I found was required to avoid errors on evaluation of calc code blocks. Best -- Eric ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org

Re: [Orgmode] Possible Calc support for Org-Babel?

2010-10-29 Thread Eric Schulte
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 fil

Re: [Orgmode] Possible Calc support for Org-Babel?

2010-10-29 Thread Eric S Fraga
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) 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

Re: [Orgmode] Possible Calc support for Org-Babel?

2010-10-29 Thread Carsten Dominik
Cool! - Carsten On Oct 29, 2010, at 8:42 AM, Eric Schulte wrote: "Eric Schulte" writes: Although I'm not familiar with using Calc as anything more than a 1- off calculator in the bottom of the frame (i.e. M-x calc) this sounds like a good approach to using calc to execute code blocks.

Re: [Orgmode] Possible Calc support for Org-Babel?

2010-10-28 Thread Eric Schulte
"Eric Schulte" writes: > > Although I'm not familiar with using Calc as anything more than a 1-off > calculator in the bottom of the frame (i.e. M-x calc) this sounds like a > good approach to using calc to execute code blocks. > Did I mention I'm not familiar with Calc. I've thrown together a

Re: [Orgmode] Possible Calc support for Org-Babel?

2010-10-26 Thread Eric Schulte
Hi Matthew, Matthew Oesting writes: > A few of us at my institution have started using CALC in our documents > (not embedded, which is far too clumsy for most of us, but C-x * u and > simple embedded phrases, often to the tune of several pages) to use > Emacs text files rather like Maple and Mat

[Orgmode] Possible Calc support for Org-Babel?

2010-10-22 Thread Matthew Oesting
A few of us at my institution have started using CALC in our documents (not embedded, which is far too clumsy for most of us, but C-x * u and simple embedded phrases, often to the tune of several pages) to use Emacs text files rather like Maple and Mathematica files. We're starting to use GIT a