Hi,

I can't get SBE blocks called from a table to work, if they use
functions like org-parse-time-string.

Suppose I have the following table:

| Start            | Ende             | |
|------------------+------------------+-|
| [2011-06-29 Wed] | [2012-02-29 Wed] | |
#+TBLFM: $3='(sbe "billable-month" (start $1) (end $2))

and the following source block:

#+NAME: billable-month(start="[2011-06-29 Wed]", end="[2012-02-29 Wed]")
#+BEGIN_SRC emacs-lisp
(let* ((start-date start))
   (message "%s" start-date))
#+END_SRC

If I evaluate the table, the start date is put into the last column.
However, if I change the code to the following:

#+NAME: billable-month(start="[2011-06-29 Wed]", end="[2012-02-29 Wed]")
#+BEGIN_SRC emacs-lisp
(let* ((start-date (org-parse-time-string start)))
   (message "%s" (nth 4 start-date)))
#+END_SRC

then the string #ERROR is inserted into the table. Evaluating the source
block directly yields the correct result.

What's going on here?

Thanks,
Viktor


Reply via email to