[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] [babel] Questions about export and :var. Possible bug.

From: Nicolas Goaziou
Subject: [Orgmode] [babel] Questions about export and :var. Possible bug.
Date: Fri, 28 May 2010 23:38:18 +0200
User-agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/23.2 Mule/6.0 (HANACHIRUSATO)


I tried to export something like this (git head) :

#+begin_src R :var num=3 :exports results
runif(n=num, min=0, max=1)

While it is fine when run with C-c C-c, I get the following error
when trying to export the file :

progn: reference '3' not found in this buffer

So I investigated a bit and found something odd :
- `org-babel-exp-results' adds `org-current-export-file' to any
  assignment, even if num=/path/to/file/exported:3 doesn't make sense;
- `org-babel-resolve-reference' doesn't filter out bad references like
  this and throws the error above.

So my questions are :
- do we really need the "reference '%s' not found in this buffer" error, as it 
only means
  %s was a literal value ?
- or is it better to modify org-babel-exp-results to check the sanity
  of the references it creates so that it doesn't add that reference
  to the original file ?

- Nicolas

reply via email to

[Prev in Thread] Current Thread [Next in Thread]