Hi Eric,
Eric Schulte wrote:
Question: Would it be possible to add the src-name in the error
message?
Unfortunately the code block name is not known to the function (namely
`org-babel-merge-params') which throws errors when variables are not
assigned default values. In fact this function
Hi Eric,
Eric Schulte wrote:
Thanks for working on this test, I look forward to adding it once it is
completed.
As promised, a patch for checking that vars with no default value will
generate an error with a full explanation.
I edited 2 files:
- lisp/test-ob.el
- examples/babel.org
Tell me
Hi
Sebastien Vauban wxhgmqzgw...@spammotel.com writes:
Hi Eric,
Eric Schulte wrote:
Thanks for working on this test, I look forward to adding it once it is
completed.
As promised, a patch for checking that vars with no default value will
generate an error with a full explanation.
I
Question: Would it be possible to add the src-name in the error
message?
Unfortunately the code block name is not known to the function (namely
`org-babel-merge-params') which throws errors when variables are not
assigned default values. In fact this function may be called when there
are no
Hi Eric,
Eric Schulte wrote:
Sebastien Vauban wxhgmqzgw...@spammotel.com writes:
If there is no value assigned to the code block...
... there is no an error when exporting:
#+begin_src text
Debugger entered--Lisp error: (wrong-type-argument consp nil)
setcdr(nil nil=x)
#+end_src
All
Hi Sebastien
Sebastien Vauban
wxhgmqzgw...@spammotel.com writes:
Hi Eric,
Eric Schulte wrote:
Sebastien Vauban wxhgmqzgw...@spammotel.com writes:
If there is no value assigned to the code block...
... there is no an error when exporting:
#+begin_src text
Debugger entered--Lisp error:
Hi,
#+TITLE: Export problem
#+AUTHOR:Seb Vauban
#+DATE: 2011-09-08
#+LANGUAGE: en
* Works OK
#+source: square(x=6)
#+begin_src python
return x*x
#+end_src
* Does not work
If there is no value assigned to the code block...
#+source: circle(x)
#+begin_src python
return x*x
Hi Seb,
All variables must be given a default value, which is why it is an error
to write a code block like the following.
#+source: circle(x)
#+begin_src python
return x*x
#+end_src
I've just pushed up a change which provides a better error message in
this case.
Best -- Eric
Sebastien Vauban