From: Nicolas Goaziou <n.goaziou@gmail.com>
To: Org Mode List <emacs-orgmode@gnu.org>
Subject: [babel] Questions about export and :var. Possible bug.
Date: Fri, 28 May 2010 23:38:18 +0200 [thread overview]
Message-ID: <871vcvso51.wl%n.goaziou@gmail.com> (raw)
Hello.
I tried to export something like this (git head) :
#+begin_src R :var num=3 :exports results
runif(n=num, min=0, max=1)
#+end_src
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
next reply other threads:[~2010-05-28 21:38 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-28 21:38 Nicolas Goaziou [this message]
2010-06-01 22:57 ` [babel] Questions about export and :var. Possible bug Eric Schulte
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=871vcvso51.wl%n.goaziou@gmail.com \
--to=n.goaziou@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).