From: "Eric Schulte" <schulte.eric@gmail.com>
To: Eric Schulte <schulte.eric@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: [babel] hemorrhaging at the bleeding edge: using clojure
Date: Thu, 28 Apr 2011 12:22:42 -0600 [thread overview]
Message-ID: <87ei4m6xsd.fsf@gmail.com> (raw)
In-Reply-To: <8762pyfhb2.fsf@ucl.ac.uk> (Eric S. Fraga's message of "Thu, 28 Apr 2011 17:53:53 +0100")
[...]
>
> 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/
next prev parent reply other threads:[~2011-04-28 18:22 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-27 7:56 [babel] hemorrhaging at the bleeding edge: using clojure Eric S Fraga
2011-04-27 13:10 ` Eric Schulte
2011-04-27 15:50 ` Eric S Fraga
2011-04-28 16:53 ` Eric S Fraga
2011-04-28 17:08 ` Eric S Fraga
2011-04-28 18:22 ` Eric Schulte [this message]
2011-04-28 20:21 ` Eric S Fraga
2011-04-28 20:41 ` Eric Schulte
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ei4m6xsd.fsf@gmail.com \
--to=schulte.eric@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).