ob-clojure: more robust reading of results
* lisp/ob-clojure.el (org-babel-execute:clojure): If results are not readable by lisp, then return them as a string.
This commit is contained in:
parent
0846a121b0
commit
4a8640d0cf
|
@ -75,10 +75,10 @@
|
|||
(require 'slime) (require 'swank-clojure)
|
||||
(with-temp-buffer
|
||||
(insert (org-babel-expand-body:clojure body params))
|
||||
(read
|
||||
((lambda (result) (condition-case nil (read result) (error result)))
|
||||
(slime-eval
|
||||
`(swank:interactive-eval-region
|
||||
,(buffer-substring-no-properties (point-min) (point-max)))
|
||||
,(buffer-substring-no-properties (point-min) (point-max)))
|
||||
(cdr (assoc :package params))))))
|
||||
|
||||
(provide 'ob-clojure)
|
||||
|
|
Loading…
Reference in New Issue