1
0
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-11-21 06:55:35 +00:00

ob-clojure.el: Fix bug with inline comments

* lisp/ob-clojure.el (ob-clojure-eval-with-cider): Filter out
  nil values from cider evaluation.
This commit is contained in:
Daniel Kraus 2022-10-27 14:16:33 +02:00
parent 0681babab4
commit a51cf1cc6b
No known key found for this signature in database
GPG Key ID: C1C8D63F884EF9C9

View File

@ -239,8 +239,10 @@ or set the `:backend' header argument"))))
"value")))
result0)))
(ob-clojure-string-or-list
;; Filter out s-expressions that return `nil' (string "nil"
;; from nrepl eval) or comment forms (actual `nil' from nrepl)
(reverse (delete "" (mapcar (lambda (r)
(replace-regexp-in-string "nil" "" r))
(replace-regexp-in-string "nil" "" (or r "")))
result0)))))))
(defun ob-clojure-eval-with-slime (expanded params)