From mboxrd@z Thu Jan 1 00:00:00 1970 From: Myles English Subject: noweb reference to #+call Date: Thu, 03 Jan 2013 16:15:41 +0000 Message-ID: <87ip7e4502.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:40020) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TqnRs-0000PP-Mv for emacs-orgmode@gnu.org; Thu, 03 Jan 2013 11:15:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TqnRp-0004Oj-78 for emacs-orgmode@gnu.org; Thu, 03 Jan 2013 11:15:16 -0500 Received: from mail-wi0-f175.google.com ([209.85.212.175]:59975) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TqnRp-0004Nl-0W for emacs-orgmode@gnu.org; Thu, 03 Jan 2013 11:15:13 -0500 Received: by mail-wi0-f175.google.com with SMTP id hm11so11053713wib.2 for ; Thu, 03 Jan 2013 08:15:12 -0800 (PST) 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: org-mode Mailinglist --=-=-= Content-Type: text/plain Hi, It would be useful to be able to use the noweb reference syntax to refer to #+CALL: lines: e.g.: #+name: myFunction #+BEGIN_SRC sh :var A="" :noweb yes echo $A #+END_SRC #+CALL: myFunction[:results output](A="aaa") :noweb-ref mynoweb #+header: :noweb yes #+begin_src sh <> #+end_src #+RESULTS: : aaa ( <<-- Fiction) However it is not currently working for me. It is not clear to me from the manual whether it was ever possible so this is probably a Feature Request. (Unless is was possible then it may be a regression.) My experiments are in the attached file if anyone wants to take a look. Thanks, Myles --=-=-= Content-Type: text/plain Content-Disposition: attachment; filename=noweb.org * Function #+name: myFunction #+BEGIN_SRC sh :var A="" :noweb yes echo $A #+END_SRC * Test 1 - FAILS #+CALL: myFunction[:results output](A="aaa") :noweb-ref mynoweb #+RESULTS: myFunction[:results output](A="aaa"):noweb-ref mynoweb : aaa Expect: ": aaa" : #+header: :noweb yes #+begin_src sh <> #+end_src #+RESULTS: * Test 2 - FAILS #+CALL: myFunction[:results output :noweb yes](A="aaa") :noweb-ref mynoweb2 #+RESULTS: myFunction[:results output :noweb yes](A="aaa"):noweb-ref mynoweb2 : aaa Expect: ": aaa" : #+header: :noweb yes #+begin_src sh <> #+end_src #+RESULTS: * Test 3 - FAILS #+CALL: myFunction[:results output :noweb yes](A="aaa") :noweb yes :noweb-ref mynoweb3 #+RESULTS: myFunction[:results output :noweb yes](A="aaa"):noweb yes :noweb-ref mynoweb3 : aaa Expect: ": aaa" : #+header: :noweb yes #+begin_src sh <> #+end_src #+RESULTS: * Test 4 - WORKS Testing the :noweb-ref PROPERTY ** function :PROPERTIES: :noweb-ref: mynoweb4 :END: #+BEGIN_SRC sh :var A="" :noweb yes echo $A #+END_SRC ** result #+header: :noweb yes #+begin_src sh <> #+end_src #+RESULTS: | | | noCall | * Test 5 - FAILS Testing the :noweb-ref PROPERTY with a CALL ** function :PROPERTIES: :noweb-ref: mynoweb5 :END: #+CALL: myFunction[:results output](A="aaa") ** result #+header: :noweb yes #+begin_src sh <> #+end_src #+RESULTS: * Test 6 - WORKS #+name: noCall #+header: :noweb yes :noweb-ref mynoweb4 #+begin_src sh echo "noCall" #+end_src #+RESULTS: noCall : noCall Expect: ": noCall" : #+header: :noweb yes #+begin_src sh <> #+end_src #+RESULTS: : noCall --=-=-=--