From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pascal Fleury Subject: #+CALL cross-file with reference arguments Date: Mon, 24 Mar 2014 09:07:12 +0100 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=20cf303f6826101ecf04f555b988 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49607) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WRzug-0006Gf-5y for emacs-orgmode@gnu.org; Mon, 24 Mar 2014 04:07:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WRzub-0007vI-OJ for emacs-orgmode@gnu.org; Mon, 24 Mar 2014 04:07:18 -0400 Received: from mail-yh0-f54.google.com ([209.85.213.54]:48934) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WRzub-0007vD-KU for emacs-orgmode@gnu.org; Mon, 24 Mar 2014 04:07:13 -0400 Received: by mail-yh0-f54.google.com with SMTP id f73so4784659yha.27 for ; Mon, 24 Mar 2014 01:07:12 -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 --20cf303f6826101ecf04f555b988 Content-Type: text/plain; charset=UTF-8 Hi! I am trying to do a call across files with arguments that are references: =========== file:config.org #+NAME: setup #+HEADER: :var model="" #+BEGIN_SRC sh some bash code that works locally #+END_SRC =========== file:experiment.org #+NAME: experiment | experiment_name | svm_classifier | | num_samples | 15000 | #+NAME: failing_call #+CALL: config.org:setup(model=experiment[0,1]) #+NAME: passing_call #+CALL: config.org:setup(model="svm_classifier") #+NAME: working_reference #+BEGIN_SRC sh :var model=experiment[0,1] echo ${model} #+END_SRC For the failing_call, I get the error "Reference 'experiment' not found in this buffer". However, if I use that same reference in another code block, it works. Is there an issue with passing reference through #+CALL ? btw, I am using emacs-orgmode 8.2.5h --paf --20cf303f6826101ecf04f555b988 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi!

I am trying to do a call across fil= es with arguments that are references:

=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D file:config.org<= /div>
#+NAME: setup
#+HEADER: :var model=3D"&qu= ot;
#+BEGIN_SRC sh
some bash code that w= orks locally
#+END_SRC

<= /div>
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D file:experiment.org
= #+NAME: experiment
| experiment_name | svm_classifi= er |
| num_samples = =C2=A0 =C2=A0 | 15000 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0|
=
#+NAME: failing_cal= l
#+CALL: config.org= :setup(model=3Dexperiment[0,1])

#+NAME: passing_cal= l
#+CALL: config.org= :setup(model=3D"svm_classifier")

= #+NAME: working_reference
#+BEGIN_SRC sh :var model=3Dexpe= riment[0,1]
echo ${m= odel}
#+END_SRC

For the failing_call, I get the error "Reference &= #39;experiment' not found in this buffer". However, if I use that = same reference in another code block, it works.
Is there an issue= with passing reference through #+CALL ?

btw, I am using emacs-orgmode 8.2.5h

--paf
--20cf303f6826101ecf04f555b988--