From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Subject: Re: ob-julia, src block execution undefined function org-babel-get-header Date: Sat, 23 Jan 2016 01:46:13 +0100 Message-ID: References: <87wpr2a4x7.fsf@kyleam.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11497b00a531db0529f5a98e Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59590) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aMmLI-0006oe-E3 for emacs-orgmode@gnu.org; Fri, 22 Jan 2016 19:46:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aMmLG-0002Q0-QV for emacs-orgmode@gnu.org; Fri, 22 Jan 2016 19:46:16 -0500 Received: from mail-wm0-x229.google.com ([2a00:1450:400c:c09::229]:33508) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aMmLG-0002Pw-Ff for emacs-orgmode@gnu.org; Fri, 22 Jan 2016 19:46:14 -0500 Received: by mail-wm0-x229.google.com with SMTP id 123so4160999wmz.0 for ; Fri, 22 Jan 2016 16:46:14 -0800 (PST) In-Reply-To: <87wpr2a4x7.fsf@kyleam.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Kyle Meyer Cc: emacs-orgmode@gnu.org --001a11497b00a531db0529f5a98e Content-Type: text/plain; charset=UTF-8 Thanks for your answer Kyle, Good that you pointed me to ob-julia, was unsure that that was the correct venue to take for a contrib package. I posted an issue there and ones I got the changelog you posted I tried the following change from (mapcar #'cdr (org-babel-get-header params :var)) to (mapcar #'cdr (org-babel--get-vars params)) This seems to works for my setup. regards Andreas 2016-01-22 0:28 GMT+01:00 Kyle Meyer : > Hi Andreas, > > Andreas writes: > > > Hi list, > > I was hoping to get some help with this issue > > > > I use: > > Org-mode version 8.3.3 (release_8.3.3-468-gf3f4b2) > > GNU Emacs 25.1.50.2 (x86_64-pc-linux-gnu, GTK+ Version 3.16.7) of > 2016-01-17 > > ess-version: 15.09-2 patched [git: > 6d05ba7c89371764c43e30a436d7166417cabd4d] > > julia version 0.4.2 > > > > I'm trying to execute julia code src blocks but have come across a > problem. > > > > When trying to do C-c C-c in the src block emacs complain about an > > undefined function org-babel-get-header. > > org-babel-get-header was removed in 0d000f5 (babel: small change in API, > 2015-10-29) and has the following NEWS entry: > > *** ~org-babel-get-header~ is removed. > Use ~org-babel--get-vars~ or ~assq~ instead, as applicable. > > However, ob-julia, along with several other packages in contrib, still > use org-babel-get-header. > > > I think I have tracked down the error to ob-julia where > org-babel-get-header > > is used. > > I found a reference to a similar problem for ob-html package here: > > https://github.com/zweifisch/ob-http/issues/12 > > I tried to edit the ob-julia file based on that fix but failed to make it > > work. > > I think something like the fix at that link should work. What did you > try and how did it fail? > > Also, perhaps it's worth raising the issue here: > > https://github.com/gjkerns/ob-julia > > -- > Kyle > --001a11497b00a531db0529f5a98e Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Thanks for your answer Kyle,

G= ood that you pointed me to ob-julia, was unsure that that was the correct v= enue to take for a contrib package.
I posted an issue there and on= es I got the changelog you posted I tried the following change
fro= m
(mapcar #'cdr (org-babel-get-header params :var))
to
(mapcar= #'cdr (org-babel--get-vars params))

This seems to works for my = setup.

regards
Andreas
=

2016-01-22 0:28 G= MT+01:00 Kyle Meyer <kyle@kyleam.com>:
Hi Andreas,

Andreas <tjandreas@gmail.com&= gt; writes:

> Hi list,
> I was hoping to get some help with this issue
>
> I use:
> Org-mode version 8.3.3 (release_8.3.3-468-gf3f4b2)
> GNU Emacs 25.1.50.2 (x86_64-pc-linux-gnu, GTK+ Version 3.16.7) of 2016= -01-17
> ess-version: 15.09-2 patched [git: 6d05ba7c89371764c43e30a436d7166417c= abd4d]
> julia version 0.4.2
>
> I'm trying to execute julia code src blocks but have come across a= problem.
>
> When trying to do C-c C-c in the src block emacs complain about an
> undefined function org-babel-get-header.

org-babel-get-header was removed in 0d000f5 (babel: small change in = API,
2015-10-29) and has the following NEWS entry:

=C2=A0 =C2=A0 *** ~org-babel-get-header~ is removed.
=C2=A0 =C2=A0 Use ~org-babel--get-vars~ or ~assq~ instead, as applicable.
However, ob-julia, along with several other packages in contrib, still
use org-babel-get-header.

> I think I have tracked down the error to ob-julia where org-babel-get-= header
> is used.
> I found a reference to a similar problem for ob-html package here:
> https://github.com/zweifisch/ob-http/issues/12
> I tried to edit the ob-julia file based on that fix but failed to make= it
> work.

I think something like the fix at that link should work.=C2=A0 What = did you
try and how did it fail?

Also, perhaps it's worth raising the issue here:

=C2=A0 =C2=A0
https://github.com/gjkerns/ob-julia

--
Kyle

--001a11497b00a531db0529f5a98e--