From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastien Vauban Subject: Re: babel, header arguments. Date: Thu, 20 Nov 2014 10:36:17 +0100 Message-ID: <86389emcxa.fsf@example.com> References: <8761ec2vsp.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: 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-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org jenia.ivlev wrote: > So lets say there's this function: > > #+name: my-plus > #+begin_src scheme > (define my-plus > (lambda (x y) (+ x y))) > #+end_src > > And i want to call it from another source block, like so: > > #+tblname: addition > | sum | > |--------| > | #ERROR | > #+TBLFM: @2$1='(org-sbe "my-plus" (33 22)) > > As you can see, I get an error. How do I write these "header-arguments" > (i think they are called) to achieve calling one src-block from another. This should do it (untested): (org-sbe "my-plus" (x 33) (y 22)) > Also, second scenario, can I somehow call my-plus from a source-block as > so: > > #+begin_src scheme > (my-plus 3 4) > #+end_src I think you must also call `org-sbe'. Best regards, Seb -- Sebastien Vauban