From mboxrd@z Thu Jan 1 00:00:00 1970 From: csanchezdll@gmail.com (Carlos =?utf-8?Q?S=C3=A1nchez?= de La Lama) Subject: Nested calls in babel Date: Tue, 10 Sep 2019 09:57:40 +0200 Message-ID: <7t7e6gpoqz.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:54666) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i7b21-0007pW-Pk for emacs-orgmode@gnu.org; Tue, 10 Sep 2019 03:57:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i7b20-0001po-Jf for emacs-orgmode@gnu.org; Tue, 10 Sep 2019 03:57:45 -0400 Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]:44616) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i7b20-0001pP-AI for emacs-orgmode@gnu.org; Tue, 10 Sep 2019 03:57:44 -0400 Received: by mail-wr1-x431.google.com with SMTP id k6so5938448wrn.11 for ; Tue, 10 Sep 2019 00:57:44 -0700 (PDT) Received: from boole (galileo.kdpof.com. [88.26.201.16]) by smtp.gmail.com with ESMTPSA id a190sm2988572wme.8.2019.09.10.00.57.41 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 10 Sep 2019 00:57:41 -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" To: emacs-orgmode@gnu.org Hi all, I am being unable to make nested calls work. Here is a minimal snippet: --8<---------------cut here---------------start------------->8--- #+NAME: foo #+BEGIN_SRC emacs-lisp "foo" #+END_SRC #+NAME: bar #+CALL: foo() #+RESULTS: bar : foo #+CALL: bar() #+RESULTS: : nil --8<---------------cut here---------------end--------------->8--- Why does the last call (to bar) return nil instead of the result of bar (which is "foo")? Actually, if I remove foo altogether, executing "bar" block gives an error, but executing the last call to "bar" still works (and still returns nil). Are nested calls supported at all? Thanks, Carlos -- Carlos