Forwarded is my original message and Nicolas Goaziou's reply.
The day that I feared has arrived. I very much want to use
recutils with org mode and have many instances where recutils is
my data base which is accessed by orgmode to generate reports,
etc.
I will attempt to use Nicolas' fix and if that doesn't work (or
more accurately, if I cannot implement it ocrrectly) I will not
use the most recent version of org mode and will instead rely on
an earlier release.
Charlie Millar
------- Forwarded Message --------
Hello,
Charles Millar <address@hidden> writes:
> When I evaluate the following the above error results (this source blosk
> and all others that are similar evaluated successfully a few days ago)
>
> #+NAME: SCHEDAP
> #+begin_src rec :data foo.rec :type Finance :fields
> AccountDate,Description,AccountAmount :results silent
> (File = 'RevTrust' && AccountSchedule = 'A')
> #+end_src
>
> degug on error -
>
> Debugger entered--Lisp error: (void-variable result-params)
This is a bug in "ob-rec.el" from Recutils package.
I switched Babel evaluation (ob-core.el) to lexical binding recently,
and "ob-rec.el" still uses dynamic binding (probably unwillingly in that
case) for `result-params'.
A trivial fix could be to add the binding
(result-params (cdr (assq :result-params params)))
in `org-babel-execute:rec'.
Since ob-rec.el is not included in Org per se, I cannot do much more
here. I suggest to report it upstream.
Thank you.
Regards,
--
Nicolas Goaziou