emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: stardiviner <numbchild@gmail.com>
To: numbchild@gmail.com
Cc: emacs-orgmode@gnu.org
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	[thread overview]
Message-ID: <87a75ow2wm.fsf@gmail.com> (raw)
In-Reply-To: <874kw55a04.fsf@gmail.com>

-----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 <numbchild@gmail.com> 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-----

  parent reply	other threads:[~2020-02-12  9:50 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-05 15:28 ob-clojure :var header argument not work when src block is noweb called by another src block stardiviner
2020-02-12  9:46 ` stardiviner
2020-02-12  9:50 ` stardiviner [this message]
2020-02-12 10:25 ` Bastien
2020-02-12 10:45   ` stardiviner
2020-02-12 11:14     ` Bastien
2020-02-12 12:21       ` stardiviner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87a75ow2wm.fsf@gmail.com \
    --to=numbchild@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).