|
| From: | stardiviner |
| Subject: | Re: ob-clojure :var header argument not work when src block is noweb called by another src block |
| Date: | Wed, 12 Feb 2020 17:50:01 +0800 |
| User-agent: | mu4e 1.3.8; emacs 27.0.50 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
This problem seems missed. Let me resume it with a gentle ping.
I know not much people in this mailing list using ob-clojure.el. Still hope
someone can fix it.
stardiviner <address@hidden> writes:
> Here is an example:
>
> #+NAME: read-in-wxid
> #+begin_src clojure :var cwd=(file-truename "~/Documents/WeChat/wxid/")
> (require '[clojure.java.io :as io])
>
> (def directory (io/file cwd))
> (def files (filter #(.isFile %) (file-seq directory)))
> #+end_src
>
> #+RESULTS[<2019-08-28 09:12:24> 84a1210d836742ca71ddddc776aaebba0e0224af]:
> read-in-wxid
> : #'user/files
>
> #+begin_src clojure :noweb yes :results pp
> <<read-in-wxid>>
> (take 3 files)
> #+end_src
>
> #+RESULTS[<2019-08-28 09:12:30> 9bbcd9f779f72bdd9b7bb8fb85aa36bbdfee7e3c]:
> : class clojure.lang.Compiler$CompilerExceptionclass
> clojure.lang.Compiler$CompilerExceptionSyntax error compiling at (*Org Src
> Code.org[ clojure ]*:3:16).
> : Unable to resolve symbol: cwd in this context
- --
[ stardiviner ]
I try to make every word tell the meaning what I want to express.
Blog: https://stardiviner.github.io/
IRC(freenode): stardiviner, Matrix: stardiviner
GPG: F09F650D7D674819892591401B5DF1C95AE89AC3
-----BEGIN PGP SIGNATURE-----
iQFIBAEBCAAyFiEE8J9lDX1nSBmJJZFAG13xyVromsMFAl5DykkUHG51bWJjaGls
ZEBnbWFpbC5jb20ACgkQG13xyVromsMHPgf/U9hAaBPj+IB/bqKC5sdWsk1UNrUm
i8oZE3jnvKzyJKmNYv5mSA14VH49uCP/bdZNoaA+8BWtxl5JEwQuXxKMYI946jXw
JcloAG5VIfx4eQwUE3prRjBibLgPrIz6zB+w1GseWvjzqXpKTexgky0gDYmS0BQI
w6nYe4lSlvV4bOtjb8QU+YgtSm17GDaiFGzpfRPPOlVZ0zz0vtGwgTYIT0kJkWd6
N/eoyHXhykNZB0GBujAN8iXYbYPoJ6CHrDZEycLf3cYAeYFHubKRZwoZj85PKMeD
CtSe6ZfR465pjpYD1aZCme3t07b/sCSflKYn6WsqUr9HrvPktlEBQ2GN2w==
=fz33
-----END PGP SIGNATURE-----
| [Prev in Thread] | Current Thread | [Next in Thread] |