From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kalev Takkis Subject: How to pass parameters to org-sbe function? Date: Fri, 9 Oct 2015 09:31:58 +0300 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1141bfc2f962090521a6228f Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50489) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZkRDk-00039G-2R for emacs-orgmode@gnu.org; Fri, 09 Oct 2015 02:32:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZkRDj-0003k1-A6 for emacs-orgmode@gnu.org; Fri, 09 Oct 2015 02:32:00 -0400 Received: from mail-io0-x22f.google.com ([2607:f8b0:4001:c06::22f]:33930) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZkRDj-0003jx-61 for emacs-orgmode@gnu.org; Fri, 09 Oct 2015 02:31:59 -0400 Received: by iow1 with SMTP id 1so82385508iow.1 for ; Thu, 08 Oct 2015 23:31:58 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --001a1141bfc2f962090521a6228f Content-Type: text/plain; charset=UTF-8 Hi list, I'm trying to use org-sbe to execute another source block but I cannot figure out how to provide required parameters. My source block takes one parameter in form of list of lists. When I compose the list in place like this (org-sbe testblock (params (list (list \"somevar\" \"somevalue\") (list \"othervar\" \"othervalue\")))) then the block works as expected, but everything else, such as using a variable or a function (ideally that's what I'd like to do), has failed. What's the secret? All the best, Kalev --001a1141bfc2f962090521a6228f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi list,

I'm trying t= o use org-sbe to execute another source block but I cannot figure out how t= o provide required parameters. My source block takes one parameter in form = of list of lists. When I compose the list in place like this

(org-sb= e testblock (params (list (list \"somevar\" \"somevalue\&quo= t;) (list \"othervar\" \"othervalue\"))))

= then the block works as expected, but everything else, such as using a vari= able or a function (ideally that's what I'd like to do), has failed= . What's the secret?


All the best,
Kalev
<= /div> --001a1141bfc2f962090521a6228f--