bug-recutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-recutils] Org mode has changed to lexical binding (was Re: symbol's


From: Charles Millar
Subject: [bug-recutils] Org mode has changed to lexical binding (was Re: symbol's value as vatiable is void:: result-params)
Date: Tue, 21 Jun 2016 10:33:53 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1

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 --------

Subject: Re: symbol's value as vatiable is void:: result-params
Date: Tue, 21 Jun 2016 13:56:37 +0200
From: Nicolas Goaziou <address@hidden>
To: Charles Millar <address@hidden>
CC: address@hidden <address@hidden>


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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]