Re: [Orgmode] Org-Babel - Clojure & Lazy Sequences Bug

2010-11-26 Thread Eric Schulte
Rick Moynihan writes: > > Basically it looks like the different :results types haven't yet been > implemented... The one I was missing was 'code' e.g. the following > works for elisp: > > #+begin_src emacs-lisp :results code > '(+ 10 1) > #+end_src > > displaying: > > #+results: > #+BEGIN_SRC

Re: [Orgmode] Org-Babel - Clojure & Lazy Sequences Bug

2010-11-26 Thread Rick Moynihan
On 26 November 2010 20:29, Eric Schulte wrote: > > Alright, I'm going to fold this into the master branch (we'll still have > the entirety of the existing ob-clojure in git for resurrection if need > be). That's great news! >> >> I'm not sure what you mean by "external evaluation", but have foun

Re: [Orgmode] Org-Babel - Clojure & Lazy Sequences Bug

2010-11-26 Thread Eric Schulte
Hey Rick, Rick Moynihan writes: > Hey Eric, > > I've just run your ob-clojure, and it seems to work fine, though as > you mention it would be nice if it'd start slime (if it isn't already > running). > Alright, I'm going to fold this into the master branch (we'll still have the entirety of the

Re: [Orgmode] Org-Babel - Clojure & Lazy Sequences Bug

2010-11-25 Thread Rick Moynihan
Hey Eric, I've just run your ob-clojure, and it seems to work fine, though as you mention it would be nice if it'd start slime (if it isn't already running). I'm not sure what you mean by "external evaluation", but have found that if I do M-x slime-connect (to connect to an existing clojure/swank

Re: [Orgmode] Org-Babel - Clojure & Lazy Sequences Bug

2010-11-25 Thread Eric Schulte
Hi Rick, I'm not quite sure what the best permanent solution would be. I'm tempted to switch to a drastically stripped down version of Clojure interaction which relies very heavily on slime. I'm attaching a first pass at this which allows for slime-based execution, can assign variables, handles

Re: [Orgmode] Org-Babel - Clojure & Lazy Sequences Bug

2010-11-23 Thread Rick Moynihan
Hi Eric, Sorry for the delay in getting back to you. I can confirm the fix you quoted below works for me also. I've not been using any of the multiple session features, so I haven't run into the other problems you mention. Any idea on what a more permanent solution might be? R. On 6 November

Re: [Orgmode] Org-Babel - Clojure & Lazy Sequences Bug

2010-11-06 Thread Eric Schulte
Hi Rick, I've noticed this as well. I'm not the original author of ob-clojure.el (Joel Boehland is), so I'm not sure how the clojure interaction currently works, although I know it makes heavy usage of slime. There must be an existing mechanism used by slime to unroll these lazy evaluations, for

[Orgmode] Org-Babel - Clojure & Lazy Sequences Bug

2010-11-04 Thread Rick Moynihan
I have the following org file: #+BEGIN_SRC clojure (range 10) #+END_SRC #+results: : clojure.lang.lazy...@f35bf8c6 Where as I would expect to see the sequence. Evaluating the code inside a doall doesn't seem to do anything either: #+BEGIN_SRC clojure (doall (range 10)) #+END_SRC #+results: :