Re: [O] [babel] Export problem (Wrong type argument: consp, nil)

2011-09-16 Thread Sebastien Vauban
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

Re: [O] [babel] Export problem (Wrong type argument: consp, nil)

2011-09-16 Thread Sebastien Vauban
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

Re: [O] [babel] Export problem (Wrong type argument: consp, nil)

2011-09-16 Thread Eric Schulte
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

Re: [O] [babel] Export problem (Wrong type argument: consp, nil)

2011-09-15 Thread Eric Schulte
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

Re: [O] [babel] Export problem (Wrong type argument: consp, nil)

2011-09-14 Thread Sebastien Vauban
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

Re: [O] [babel] Export problem (Wrong type argument: consp, nil)

2011-09-14 Thread Martyn Jago
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:

[O] [babel] Export problem (Wrong type argument: consp, nil)

2011-09-08 Thread Sebastien Vauban
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

Re: [O] [babel] Export problem (Wrong type argument: consp, nil)

2011-09-08 Thread Eric Schulte
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