From mboxrd@z Thu Jan 1 00:00:00 1970 From: jenia.ivlev@gmail.com (jenia.ivlev) Subject: babel, header arguments. Date: Tue, 18 Nov 2014 13:44:22 -0500 Message-ID: <8761ec2vsp.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58564) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XqnkY-0004SA-Li for emacs-orgmode@gnu.org; Tue, 18 Nov 2014 13:43:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XqnkR-0001QK-0B for emacs-orgmode@gnu.org; Tue, 18 Nov 2014 13:43:38 -0500 Received: from plane.gmane.org ([80.91.229.3]:34174) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XqnkQ-0001Q8-NV for emacs-orgmode@gnu.org; Tue, 18 Nov 2014 13:43:30 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XqnkP-0008Tg-EZ for emacs-orgmode@gnu.org; Tue, 18 Nov 2014 19:43:29 +0100 Received: from modemcable112.235-178-173.mc.videotron.ca ([173.178.235.112]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 18 Nov 2014 19:43:29 +0100 Received: from jenia.ivlev by modemcable112.235-178-173.mc.videotron.ca with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 18 Nov 2014 19:43:29 +0100 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 Hello. I want to go through the book little schemer and take notes interlaced with the code from the book. For this I want to use babel. 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. Also, second scenario, can I somehow call my-plus from a source-block as so: #+begin_src scheme (my-plus 3 4) #+end_src Thanks very much for your help and kind concern.