From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: [babel] hemorrhaging at the bleeding edge: using clojure Date: Thu, 28 Apr 2011 12:22:42 -0600 Message-ID: <87ei4m6xsd.fsf@gmail.com> References: <87k4egi0u5.fsf@ucl.ac.uk> <87wrifkevi.fsf@gmail.com> <8762pyfhb2.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:39227) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QFVrX-0003qj-BN for emacs-orgmode@gnu.org; Thu, 28 Apr 2011 14:22:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QFVrW-0005b3-3R for emacs-orgmode@gnu.org; Thu, 28 Apr 2011 14:22:51 -0400 Received: from mail-pz0-f41.google.com ([209.85.210.41]:40169) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QFVrV-0005ay-Uq for emacs-orgmode@gnu.org; Thu, 28 Apr 2011 14:22:50 -0400 Received: by pzk4 with SMTP id 4so2525448pzk.0 for ; Thu, 28 Apr 2011 11:22:48 -0700 (PDT) In-Reply-To: <8762pyfhb2.fsf@ucl.ac.uk> (Eric S. Fraga's message of "Thu, 28 Apr 2011 17:53:53 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Eric Schulte Cc: emacs-orgmode@gnu.org [...] > > The problem is that nothing appears in the org file; instead, I get the > following error message: > > Evaluate this clojure code block (simple) on your system? (y or n) y > executing Clojure code block (simple)... > org-babel-execute:clojure: Invalid read syntax: "#" > > This is very confusing... From looking at the relevant elisp code: > > (read > (slime-eval > `(swank:interactive-eval-region > ,(buffer-substring-no-properties (point-min) (point-max))) > (cdr (assoc :package params)))) > > =read= is trying to interpret the code. But I'm not sure what this is > intended to do in this case. > > If I change my code to use the Java =.toString= method on my object, and > ask for either output or value results, it works: > > #+srcname: simple > #+begin_src clojure :results value > (.toString (variable [-1 1 2 3])) > #+end_src > > #+results: simple > : x={ -1.0, 1.0, 2.0, 3.0 } > > > Can you help at all? I am a little confused, to say the least :( > Yes, I just pushed up a commit which should solve this issue. Babel tries to read the results, to see if they should be inserted as a table or verbatim, it will now default to verbatim if reading of the result throws an error. Best -- Eric -- Eric Schulte http://cs.unm.edu/~eschulte/