[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org 0e175f11fd: lisp/ob-clojure.el: Fix header argument
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org 0e175f11fd: lisp/ob-clojure.el: Fix header argument :var binding |
Date: |
Fri, 28 Oct 2022 05:57:54 -0400 (EDT) |
branch: externals/org
commit 0e175f11fd3deaec25bebc8757855ae753c6d8fc
Author: Daniel Kraus <daniel@kraus.my>
Commit: Daniel Kraus <daniel@kraus.my>
lisp/ob-clojure.el: Fix header argument :var binding
* lisp/ob-clojure.el (org-babel-expand-body:clojure): Always quote
the variables passed from org-mode in Clojure let binding.
When a variable is a table or list, it's value is "(..data..)"
and without quotes, Clojure would try to execute the first
value as a function.
---
lisp/ob-clojure.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/ob-clojure.el b/lisp/ob-clojure.el
index bfbd15f036..4c7016927a 100644
--- a/lisp/ob-clojure.el
+++ b/lisp/ob-clojure.el
@@ -133,7 +133,7 @@ or set the `:backend' header argument"))))
(format "(let [%s]\n%s)"
(mapconcat
(lambda (var)
- (format "%S %S" (car var) (cdr var)))
+ (format "%S '%S" (car var) (cdr var)))
vars
"\n ")
body))))))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [elpa] externals/org 0e175f11fd: lisp/ob-clojure.el: Fix header argument :var binding,
ELPA Syncer <=