Fork me on GitHub
#emacs
<
2024-03-20
>
41ph4_Ph4un16:03:09

Has anyone had the same issue that I'm having now with Emacs + org-mode while attempting to tangle Clojure code? Tangling any clojure source block results in the expression to be wrapped with something like this (in this case the source block having (+ 1 2 3) in it:

(prn (binding [*out* (java.io.StringWriter.)](+ 1 2 3)))

Matthew DiLoreto14:03:08

Yes, I had this issue. I found that line in ob-clojure.el and removed it

41ph4_Ph4un17:03:05

I forgot to tell you I solved it by just defining ":eval no" in the header args.. but it is kinda funny it tries to both eval it at the time of tangling.. IIRC other babel languages don't do that.. I wonder if that should be considered as a bug/oversight that should be fixed in ob-clojure?

Matthew DiLoreto21:03:00

That's good to know. I usually set :eval yes on most of my blocks so I can develop interactively. I haven't noticed the behavior in any other babel languages either, so I think it probably is an oversight.