From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bjarte Johansen Subject: org-babel for prolog Date: Wed, 10 Dec 2014 18:20:07 +0100 Message-ID: <65BF665A-C03D-4CCB-A8C6-A052BDD1BEBD@infomedia.uib.no> Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\)) Content-Type: multipart/alternative; boundary="Apple-Mail=_820E668F-E0A1-4961-94AA-D947A73F628B" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46135) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xykvz-0000pe-P7 for emacs-orgmode@gnu.org; Wed, 10 Dec 2014 12:20:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xykvt-00022R-GR for emacs-orgmode@gnu.org; Wed, 10 Dec 2014 12:20:19 -0500 Received: from alfons.uib.no ([129.177.30.141]:46050) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xykvt-00021z-AE for emacs-orgmode@gnu.org; Wed, 10 Dec 2014 12:20:13 -0500 Received: from alfux.uib.no (smtp.uib.no) [2001:700:200:6::a:1f0c] by alfons.uib.no for emacs-orgmode@gnu.org with esmtp (Exim 4.84) id 1Xykvo-0007B4-9g; Wed, 10 Dec 2014 18:20:08 +0100 Received: from pc-115-170.eduroam.uib.no [129.177.115.170]:60416 by smtp.uib.no for emacs-orgmode@gnu.org with esmtpsa (Exim 4.84) id 1Xykvo-0007tI-2T; Wed, 10 Dec 2014 18:20:08 +0100 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: emacs-orgmode@gnu.org --Apple-Mail=_820E668F-E0A1-4961-94AA-D947A73F628B Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi, I have started to implement org-babel support for (swi-)prolog. I have = gotten to the point where I can execute a goal in an external process = and have the result show up in the org file. I am now working on getting = the session to work correctly. It runs and prints, but it doesn=E2=80=99t = do the correct thing in the inferior-mode-buffer and the output is = garbled. I still have some work ahead of me. I just thought I would let you know in case someone was interested in = following the progress or maybe also in helping me. I have the mode = hosted in its current state here = https://gist.github.com/ljos/2e346333e1b7bfd56d05 = .=20 And before you ask, yes, if I get this into a working order, I would = eventually be interested in getting this into either contrib or core. Regards, Bjarte= --Apple-Mail=_820E668F-E0A1-4961-94AA-D947A73F628B Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Hi,

I = have started to implement org-babel support for (swi-)prolog. I have = gotten to the point where I can execute a goal in an external process = and have the result show up in the org file. I am now working on getting = the session to work correctly. It runs and prints, but it doesn=E2=80=99t = do the correct thing in the inferior-mode-buffer and the output is = garbled. I still have some work ahead of me.

I just thought I would let you know in = case someone was interested in following the progress or maybe also in = helping me. I have the mode hosted in its current state here https://gist.github.com/ljos/2e346333e1b7bfd56d05 .&nb= sp;

And before = you ask, yes, if I get this into a working order, I would eventually be = interested in getting this into either contrib or core.

Regards,
Bjarte
= --Apple-Mail=_820E668F-E0A1-4961-94AA-D947A73F628B-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bjarte Johansen Subject: Re: org-babel for prolog Date: Fri, 19 Dec 2014 16:25:53 +0100 Message-ID: <619F74FC-4D9C-47FC-ADC8-2897FFF052F3@infomedia.uib.no> References: <65BF665A-C03D-4CCB-A8C6-A052BDD1BEBD@infomedia.uib.no> Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\)) Content-Type: multipart/alternative; boundary="Apple-Mail=_226C5BBE-4A2C-4AA4-ABC8-C5C9F23CDEE8" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58129) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y1zRQ-00061z-I8 for emacs-orgmode@gnu.org; Fri, 19 Dec 2014 10:26:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y1zRG-0002Jw-II for emacs-orgmode@gnu.org; Fri, 19 Dec 2014 10:26:08 -0500 Received: from alfons.uib.no ([129.177.30.141]:41146) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y1zRG-0002JB-7S for emacs-orgmode@gnu.org; Fri, 19 Dec 2014 10:25:58 -0500 Received: from alfux.uib.no (smtp.uib.no) [2001:700:200:6::a:1f0c] by alfons.uib.no for emacs-orgmode@gnu.org with esmtp (Exim 4.84) id 1Y1zRA-0003Hz-24; Fri, 19 Dec 2014 16:25:52 +0100 Received: from pc-115-216.eduroam.uib.no [129.177.115.216]:56429 by smtp.uib.no for emacs-orgmode@gnu.org with esmtpsa (Exim 4.84) id 1Y1zR9-0004st-N5; Fri, 19 Dec 2014 16:25:51 +0100 In-Reply-To: <65BF665A-C03D-4CCB-A8C6-A052BDD1BEBD@infomedia.uib.no> 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: emacs-orgmode@gnu.org --Apple-Mail=_226C5BBE-4A2C-4AA4-ABC8-C5C9F23CDEE8 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 I just wanted to report that it is now possible to evaluate prolog code = and it should return the correct result. Both as a call to the = executable and in a session. When calling a goal in a session, I add a = cut at the end of the goal so that prolog doesn=E2=80=99t ask if you = want to get the next possible answer. I am not sure if this is the best = approach. I haven=E2=80=99t implemented variable assignment yet because I = haven=E2=80=99t decided how it should do that considering how prolog = uses variables. If someone has any ideas for this I would be glad to = hear them. I have considered entering the variables into the prolog = database with the record predicates or replacing all prolog variables = with the same name as in the var declaration with the value. The last = one I don=E2=80=99t think is a particularly good idea, except if we only = replace the free variables. Regards, Bjarte > 10. des. 2014 kl. 18.20 skrev Bjarte Johansen = : >=20 > Hi, >=20 > I have started to implement org-babel support for (swi-)prolog. I have = gotten to the point where I can execute a goal in an external process = and have the result show up in the org file. I am now working on getting = the session to work correctly. It runs and prints, but it doesn=E2=80=99t = do the correct thing in the inferior-mode-buffer and the output is = garbled. I still have some work ahead of me. >=20 > I just thought I would let you know in case someone was interested in = following the progress or maybe also in helping me. I have the mode = hosted in its current state here = https://gist.github.com/ljos/2e346333e1b7bfd56d05 = .=20 >=20 > And before you ask, yes, if I get this into a working order, I would = eventually be interested in getting this into either contrib or core. >=20 > Regards, > Bjarte --Apple-Mail=_226C5BBE-4A2C-4AA4-ABC8-C5C9F23CDEE8 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
I just wanted to report that it is now = possible to evaluate prolog code and it should return the correct = result. Both as a call to the executable and in a session. When calling = a goal in a session, I add a cut at the end of the goal so that prolog = doesn=E2=80=99t ask if you want to get the next possible answer. I am = not sure if this is the best approach.

I haven=E2=80=99t implemented variable = assignment yet because I haven=E2=80=99t decided how it should do that = considering how prolog uses variables. If someone has any ideas for this = I would be glad to hear them. I have considered entering the variables = into the prolog database with the record predicates or replacing all = prolog variables with the same name as in the var declaration with the = value. The last one I don=E2=80=99t think is a particularly good idea, = except if we only replace the free variables.

Regards,
Bjarte


10. = des. 2014 kl. 18.20 skrev Bjarte Johansen <Bjarte.Johansen@infomedia.uib.no>:

Hi,

I have started to = implement org-babel support for (swi-)prolog. I have gotten to the point = where I can execute a goal in an external process and have the result = show up in the org file. I am now working on getting the session to work = correctly. It runs and prints, but it doesn=E2=80=99t do the correct = thing in the inferior-mode-buffer and the output is garbled. I still = have some work ahead of me.

I just thought I would let you know in case someone was = interested in following the progress or maybe also in helping me. I have = the mode hosted in its current state here https://gist.github.com/ljos/2e346333e1b7bfd56d05 .&nb= sp;

And before = you ask, yes, if I get this into a working order, I would eventually be = interested in getting this into either contrib or core.

Regards,
Bjarte

= --Apple-Mail=_226C5BBE-4A2C-4AA4-ABC8-C5C9F23CDEE8-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bjarte Johansen Subject: Re: org-babel for prolog Date: Fri, 2 Jan 2015 14:29:49 +0100 Message-ID: <04441E2C-21DB-4A7B-AF73-76D5AA2CA2CB@infomedia.uib.no> References: <65BF665A-C03D-4CCB-A8C6-A052BDD1BEBD@infomedia.uib.no> <619F74FC-4D9C-47FC-ADC8-2897FFF052F3@infomedia.uib.no> Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\)) Content-Type: multipart/alternative; boundary="Apple-Mail=_F65B8156-F480-4C4D-BF6D-025646338106" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44316) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y72In-0007O4-5K for emacs-orgmode@gnu.org; Fri, 02 Jan 2015 08:30:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y72Ii-0003y6-6H for emacs-orgmode@gnu.org; Fri, 02 Jan 2015 08:30:05 -0500 Received: from alfons.uib.no ([129.177.30.141]:42834) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y72Ih-0003xu-Rv for emacs-orgmode@gnu.org; Fri, 02 Jan 2015 08:30:00 -0500 Received: from alfux.uib.no (smtp.uib.no) [2001:700:200:6::a:1f0c] by alfons.uib.no for emacs-orgmode@gnu.org with esmtp (Exim 4.84) id 1Y72Id-0002Iz-0O; Fri, 02 Jan 2015 14:29:55 +0100 Received: from pc-115-206.eduroam.uib.no [129.177.115.206]:52821 by smtp.uib.no for emacs-orgmode@gnu.org with esmtpsa (Exim 4.84) id 1Y72Ic-0001lB-H2; Fri, 02 Jan 2015 14:29:54 +0100 In-Reply-To: <619F74FC-4D9C-47FC-ADC8-2897FFF052F3@infomedia.uib.no> 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: emacs-orgmode@gnu.org --Apple-Mail=_F65B8156-F480-4C4D-BF6D-025646338106 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 I thought you should know that I moved the project here: = https://github.com/ljos/ob-prolog = This makes it a bit easier for me to track issues and do proper = commit-messages etc. I have now implemented the session stuff properly (I think). I still = have to implement the variable stuff and expansion of the body (or I can = perhaps just use the generic function).=20 > 19. des. 2014 kl. 16.25 skrev Bjarte Johansen = : >=20 > I just wanted to report that it is now possible to evaluate prolog = code and it should return the correct result. Both as a call to the = executable and in a session. When calling a goal in a session, I add a = cut at the end of the goal so that prolog doesn=E2=80=99t ask if you = want to get the next possible answer. I am not sure if this is the best = approach. >=20 > I haven=E2=80=99t implemented variable assignment yet because I = haven=E2=80=99t decided how it should do that considering how prolog = uses variables. If someone has any ideas for this I would be glad to = hear them. I have considered entering the variables into the prolog = database with the record predicates or replacing all prolog variables = with the same name as in the var declaration with the value. The last = one I don=E2=80=99t think is a particularly good idea, except if we only = replace the free variables. >=20 > Regards, > Bjarte >=20 >=20 >> 10. des. 2014 kl. 18.20 skrev Bjarte Johansen = >: >>=20 >> Hi, >>=20 >> I have started to implement org-babel support for (swi-)prolog. I = have gotten to the point where I can execute a goal in an external = process and have the result show up in the org file. I am now working on = getting the session to work correctly. It runs and prints, but it = doesn=E2=80=99t do the correct thing in the inferior-mode-buffer and the = output is garbled. I still have some work ahead of me. >>=20 >> I just thought I would let you know in case someone was interested in = following the progress or maybe also in helping me. I have the mode = hosted in its current state here = https://gist.github.com/ljos/2e346333e1b7bfd56d05 = .=20 >>=20 >> And before you ask, yes, if I get this into a working order, I would = eventually be interested in getting this into either contrib or core. >>=20 >> Regards, >> Bjarte >=20 --Apple-Mail=_F65B8156-F480-4C4D-BF6D-025646338106 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
I thought you should know that I moved the = project here: https://github.com/ljos/ob-prolog This makes it a = bit easier for me to track issues and do proper commit-messages = etc.

I have = now implemented the session stuff properly (I think). I still have to = implement the variable stuff and expansion of the body (or I can perhaps = just use the generic function). 


19. des. 2014 kl. 16.25 skrev Bjarte Johansen = <Bjarte.Johansen@infomedia.uib.no>:

I just wanted to report that it is now possible to evaluate = prolog code and it should return the correct result. Both as a call to = the executable and in a session. When calling a goal in a session, I add = a cut at the end of the goal so that prolog doesn=E2=80=99t ask if you = want to get the next possible answer. I am not sure if this is the best = approach.

I = haven=E2=80=99t implemented variable assignment yet because I haven=E2=80=99= t decided how it should do that considering how prolog uses variables. = If someone has any ideas for this I would be glad to hear them. I have = considered entering the variables into the prolog database with the = record predicates or replacing all prolog variables with the same name = as in the var declaration with the value. The last one I don=E2=80=99t = think is a particularly good idea, except if we only replace the free = variables.

Regards,
Bjarte


10. des. 2014 kl. 18.20 skrev Bjarte Johansen = <Bjarte.Johansen@infomedia.uib.no>:

Hi,

I have started to = implement org-babel support for (swi-)prolog. I have gotten to the point = where I can execute a goal in an external process and have the result = show up in the org file. I am now working on getting the session to work = correctly. It runs and prints, but it doesn=E2=80=99t do the correct = thing in the inferior-mode-buffer and the output is garbled. I still = have some work ahead of me.

I just thought I would let you know in case someone was = interested in following the progress or maybe also in helping me. I have = the mode hosted in its current state here https://gist.github.com/ljos/2e346333e1b7bfd56d05 .&nb= sp;

And before = you ask, yes, if I get this into a working order, I would eventually be = interested in getting this into either contrib or core.

Regards,
Bjarte


= --Apple-Mail=_F65B8156-F480-4C4D-BF6D-025646338106-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lawrence Bottorff Subject: Re: org-babel for prolog Date: Thu, 14 May 2015 14:11:39 -0400 Message-ID: References: <65BF665A-C03D-4CCB-A8C6-A052BDD1BEBD@infomedia.uib.no> <619F74FC-4D9C-47FC-ADC8-2897FFF052F3@infomedia.uib.no> <04441E2C-21DB-4A7B-AF73-76D5AA2CA2CB@infomedia.uib.no> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b15aaadb2d7f705160ea896 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46492) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ysxbi-0005m2-F1 for emacs-orgmode@gnu.org; Thu, 14 May 2015 14:11:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ysxbg-0005AA-V9 for emacs-orgmode@gnu.org; Thu, 14 May 2015 14:11:42 -0400 Received: from mail-pa0-x22b.google.com ([2607:f8b0:400e:c03::22b]:34642) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ysxbg-00059i-Jb for emacs-orgmode@gnu.org; Thu, 14 May 2015 14:11:40 -0400 Received: by pacyx8 with SMTP id yx8so93443485pac.1 for ; Thu, 14 May 2015 11:11:39 -0700 (PDT) In-Reply-To: <04441E2C-21DB-4A7B-AF73-76D5AA2CA2CB@infomedia.uib.no> 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: Bjarte Johansen Cc: emacs-orgmode@gnu.org --047d7b15aaadb2d7f705160ea896 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Thanks for your great effort, BTW. Confused by the requirement: ;; To activate ob-prolog add the following to your init.el file: ;; ;; (eval-after-load 'org ;; '(require 'org-prolog)) My Emacs ( 24.5.1) gives an error with this line. I know I'm probably missing something obvious, but what is org-prolog? On Fri, Jan 2, 2015 at 8:29 AM, Bjarte Johansen < bjarte.johansen@infomedia.uib.no> wrote: > I thought you should know that I moved the project here: > https://github.com/ljos/ob-prolog This makes it a bit easier for me to > track issues and do proper commit-messages etc. > > I have now implemented the session stuff properly (I think). I still have > to implement the variable stuff and expansion of the body (or I can perha= ps > just use the generic function). > > > 19. des. 2014 kl. 16.25 skrev Bjarte Johansen < > Bjarte.Johansen@infomedia.uib.no>: > > I just wanted to report that it is now possible to evaluate prolog code > and it should return the correct result. Both as a call to the executable > and in a session. When calling a goal in a session, I add a cut at the en= d > of the goal so that prolog doesn=E2=80=99t ask if you want to get the nex= t possible > answer. I am not sure if this is the best approach. > > I haven=E2=80=99t implemented variable assignment yet because I haven=E2= =80=99t decided > how it should do that considering how prolog uses variables. If someone h= as > any ideas for this I would be glad to hear them. I have considered enteri= ng > the variables into the prolog database with the record predicates or > replacing all prolog variables with the same name as in the var declarati= on > with the value. The last one I don=E2=80=99t think is a particularly good= idea, > except if we only replace the free variables. > > Regards, > Bjarte > > > 10. des. 2014 kl. 18.20 skrev Bjarte Johansen < > Bjarte.Johansen@infomedia.uib.no>: > > Hi, > > I have started to implement org-babel support for (swi-)prolog. I have > gotten to the point where I can execute a goal in an external process and > have the result show up in the org file. I am now working on getting the > session to work correctly. It runs and prints, but it doesn=E2=80=99t do = the > correct thing in the inferior-mode-buffer and the output is garbled. I > still have some work ahead of me. > > I just thought I would let you know in case someone was interested in > following the progress or maybe also in helping me. I have the mode hoste= d > in its current state here > https://gist.github.com/ljos/2e346333e1b7bfd56d05 . > > And before you ask, yes, if I get this into a working order, I would > eventually be interested in getting this into either contrib or core. > > Regards, > Bjarte > > > > --047d7b15aaadb2d7f705160ea896 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Thanks for your great effort, BTW.

Confused by the requirement:

;; To activate ob-pr= olog add the following to your init.el file:
;;
;; =C2= =A0(eval-after-load 'org
;; =C2=A0 =C2=A0'(require 'o= rg-prolog))

My Emacs (=C2=A024.5.1) gives an= error with this line. I know I'm probably missing something obvious, b= ut what is org-prolog?

On Fri, Jan 2, 2015 at 8:29 AM, Bjarte Johansen <bjarte.johansen@infomedia.uib.no> wrote:




I just wanted to report that it is now possible to evaluate prolog c= ode and it should return the correct result. Both as a call to the executab= le and in a session. When calling a goal in a session, I add a cut at the e= nd of the goal so that prolog doesn=E2=80=99t ask if you want to get the ne= xt possible answer. I am not sure if this is the best approach.
<= br>
I haven=E2=80=99t implemented variable assignment yet because= I haven=E2=80=99t decided how it should do that considering how prolog use= s variables. If someone has any ideas for this I would be glad to hear them= . I have considered entering the variables into the prolog database with th= e record predicates or replacing all prolog variables with the same name as= in the var declaration with the value. The last one I don=E2=80=99t think = is a particularly good idea, except if we only replace the free variables.<= /div>

Regards,
Bjarte


=
10. des. 2014 kl. 18.20 skrev Bjarte Jo= hansen <Bjarte.Johansen@infomedia.uib.no>:

Hi,

I have started to implement o= rg-babel support for (swi-)prolog. I have gotten to the point where I can e= xecute a goal in an external process and have the result show up in the org= file. I am now working on getting the session to work correctly. It runs a= nd prints, but it doesn=E2=80=99t do the correct thing in the inferior-mode= -buffer and the output is garbled. I still have some work ahead of me.

I just thought I would let you know in case someone wa= s interested in following the progress or maybe also in helping me. I have = the mode hosted in its current state here=C2=A0https://gist.github.com= /ljos/2e346333e1b7bfd56d05=C2=A0.=C2=A0

And be= fore you ask, yes, if I get this into a working order, I would eventually b= e interested in getting this into either contrib or core.

Regards,
Bjarte

<= /div>


=
--047d7b15aaadb2d7f705160ea896-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Puneeth Chaganti Subject: Re: org-babel for prolog Date: Thu, 14 May 2015 23:52:58 +0530 Message-ID: References: <65BF665A-C03D-4CCB-A8C6-A052BDD1BEBD@infomedia.uib.no> <619F74FC-4D9C-47FC-ADC8-2897FFF052F3@infomedia.uib.no> <04441E2C-21DB-4A7B-AF73-76D5AA2CA2CB@infomedia.uib.no> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48764) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ysxmy-0007xS-N0 for emacs-orgmode@gnu.org; Thu, 14 May 2015 14:23:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ysxmx-0004YA-WD for emacs-orgmode@gnu.org; Thu, 14 May 2015 14:23:20 -0400 Received: from mail-wi0-x234.google.com ([2a00:1450:400c:c05::234]:37708) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ysxmx-0004Xq-Oh for emacs-orgmode@gnu.org; Thu, 14 May 2015 14:23:19 -0400 Received: by wibt6 with SMTP id t6so25615056wib.0 for ; Thu, 14 May 2015 11:23:18 -0700 (PDT) In-Reply-To: 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: Lawrence Bottorff Cc: emacs-orgmode , Bjarte Johansen On Thu, May 14, 2015 at 11:41 PM, Lawrence Bottorff wrote: > > Confused by the requirement: > > ;; To activate ob-prolog add the following to your init.el file: > ;; > ;; (eval-after-load 'org > ;; '(require 'org-prolog)) I'm guessing its a typo and should be ob-prolog. The file provides ob-prolog. From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bjarte Johansen Subject: Re: org-babel for prolog Date: Thu, 14 May 2015 23:03:45 +0200 Message-ID: <38284347-6B57-4A67-A48C-5A6FA1D48160@infomedia.uib.no> References: <65BF665A-C03D-4CCB-A8C6-A052BDD1BEBD@infomedia.uib.no> <619F74FC-4D9C-47FC-ADC8-2897FFF052F3@infomedia.uib.no> <04441E2C-21DB-4A7B-AF73-76D5AA2CA2CB@infomedia.uib.no> Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2098\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59845) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yt0IM-0002PI-DA for emacs-orgmode@gnu.org; Thu, 14 May 2015 17:03:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yt0IJ-0005se-7b for emacs-orgmode@gnu.org; Thu, 14 May 2015 17:03:54 -0400 Received: from alfons.uib.no ([129.177.30.141]:45983) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yt0IJ-0005rv-1H for emacs-orgmode@gnu.org; Thu, 14 May 2015 17:03:51 -0400 In-Reply-To: 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: Puneeth Chaganti Cc: emacs-orgmode , Lawrence Bottorff > On 14 May 2015, at 20:22, Puneeth Chaganti = wrote: >=20 > On Thu, May 14, 2015 at 11:41 PM, Lawrence Bottorff = wrote: >>=20 >> Confused by the requirement: >>=20 >> ;; To activate ob-prolog add the following to your init.el file: >> ;; >> ;; (eval-after-load 'org >> ;; '(require 'org-prolog)) >=20 >=20 > I'm guessing its a typo and should be ob-prolog. The file provides = ob-prolog. Yes, I typed it wrong. Thank you for bringing it to my attention. I also = discovered that it is better to use `org-babel-do-load-languages=E2=80=99 = instead as well. I will change the recommendation tomorrow. Regards, Bjarte= From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lawrence Bottorff Subject: Re: org-babel for prolog Date: Sat, 16 May 2015 09:00:22 -0400 Message-ID: References: <65BF665A-C03D-4CCB-A8C6-A052BDD1BEBD@infomedia.uib.no> <619F74FC-4D9C-47FC-ADC8-2897FFF052F3@infomedia.uib.no> <04441E2C-21DB-4A7B-AF73-76D5AA2CA2CB@infomedia.uib.no> <38284347-6B57-4A67-A48C-5A6FA1D48160@infomedia.uib.no> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b6d98de25af8e0516328b5b Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36608) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YtbhZ-0004Au-0u for emacs-orgmode@gnu.org; Sat, 16 May 2015 09:00:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YtbhX-0007KR-VT for emacs-orgmode@gnu.org; Sat, 16 May 2015 09:00:24 -0400 Received: from mail-pd0-x236.google.com ([2607:f8b0:400e:c02::236]:34269) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YtbhX-0007J7-La for emacs-orgmode@gnu.org; Sat, 16 May 2015 09:00:23 -0400 Received: by pdeq5 with SMTP id q5so63310586pde.1 for ; Sat, 16 May 2015 06:00:22 -0700 (PDT) In-Reply-To: <38284347-6B57-4A67-A48C-5A6FA1D48160@infomedia.uib.no> 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: Bjarte Johansen , emacs-orgmode@gnu.org --047d7b6d98de25af8e0516328b5b Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I'm just a Prolog beginner, but this: #+begin_src prolog edge(a,b). edge(a,e). edge(b,d). edge(b,c). edge(c,a). edge(e,b). tedge(Node1,Node2) :- edge(Node1,SomeNode), edge(SomeNode,Node2). #+end_src keeps giving me this: executing Prolog code block... executing Prolog source code block org-babel-execute:prolog: Wrong type argument: char-or-string-p, ni BTW, should it be (eval-after-load 'org '(require 'ob-prolog)) or (eval-after-load "org" '(require 'ob-prolog)) . . . org in quotes? On Thu, May 14, 2015 at 5:03 PM, Bjarte Johansen < bjarte.johansen@infomedia.uib.no> wrote: > > > On 14 May 2015, at 20:22, Puneeth Chaganti wrote: > > > > On Thu, May 14, 2015 at 11:41 PM, Lawrence Bottorff > wrote: > >> > >> Confused by the requirement: > >> > >> ;; To activate ob-prolog add the following to your init.el file: > >> ;; > >> ;; (eval-after-load 'org > >> ;; '(require 'org-prolog)) > > > > > > I'm guessing its a typo and should be ob-prolog. The file provides > ob-prolog. > > Yes, I typed it wrong. Thank you for bringing it to my attention. I also > discovered that it is better to use `org-babel-do-load-languages=E2=80=99= instead > as well. I will change the recommendation tomorrow. > > Regards, > Bjarte --047d7b6d98de25af8e0516328b5b Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I'm just a Prolog beginner, but this:

#+begin_src prolog
edge(a,b).
edge(a,e).
<= div>edge(b,d).
edge(b,c).
edge(c,a).
edge(e,b= ).
tedge(Node1,Node2) :-
=C2=A0 =C2=A0 =C2=A0 =C2=A0 ed= ge(Node1,SomeNode),
=C2=A0 =C2=A0 =C2=A0 =C2=A0 edge(SomeNode,Nod= e2).
#+end_src

keeps giving me thi= s:

executing Prolog code block...
executing Prolog source code block
org-babel-execute:prolog: W= rong type argument: char-or-string-p, ni

BTW= , should it be

(eval-after-load 'org
=C2=A0 '(require 'ob-prolog))

= or=C2=A0

(eval-after-load "org"
=C2=A0 '(require 'ob-prolog))

. . . org in quotes?

On Thu, May 14, 2015 at 5:03 PM, Bjarte Johansen <bjarte.johansen@infomedia.uib.no> wrote:

> On 14 May 2015, at 20:22, Puneeth Chaganti <punchagan@gmail.com> wrote:
>
> On Thu, May 14, 2015 at 11:41 PM, Lawrence Bottorff <borgauf@gmail.com> wrote:
>>
>> Confused by the requirement:
>>
>> ;; To activate ob-prolog add the following to your init.el file: >> ;;
>> ;;=C2=A0 (eval-after-load 'org
>> ;;=C2=A0 =C2=A0 '(require 'org-prolog))
>
>
> I'm guessing its a typo and should be ob-prolog. The file provides= ob-prolog.

Yes, I typed it wrong. Thank you for bringing it to my attentio= n. I also discovered that it is better to use `org-babel-do-load-languages= =E2=80=99 instead as well. I will change the recommendation tomorrow.

Regards,
Bjarte

--047d7b6d98de25af8e0516328b5b-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lawrence Bottorff Subject: Re: org-babel for prolog Date: Sat, 16 May 2015 09:31:25 -0400 Message-ID: References: <65BF665A-C03D-4CCB-A8C6-A052BDD1BEBD@infomedia.uib.no> <619F74FC-4D9C-47FC-ADC8-2897FFF052F3@infomedia.uib.no> <04441E2C-21DB-4A7B-AF73-76D5AA2CA2CB@infomedia.uib.no> <38284347-6B57-4A67-A48C-5A6FA1D48160@infomedia.uib.no> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b15fe2f3a357d051632fa18 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40963) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YtcBc-0001Yn-Be for emacs-orgmode@gnu.org; Sat, 16 May 2015 09:31:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YtcBb-0002Sk-2e for emacs-orgmode@gnu.org; Sat, 16 May 2015 09:31:28 -0400 Received: from mail-pa0-x22e.google.com ([2607:f8b0:400e:c03::22e]:36514) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YtcBa-0002SQ-Ml for emacs-orgmode@gnu.org; Sat, 16 May 2015 09:31:26 -0400 Received: by pabts4 with SMTP id ts4so66850998pab.3 for ; Sat, 16 May 2015 06:31:25 -0700 (PDT) In-Reply-To: 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: Bjarte Johansen , emacs-orgmode@gnu.org --047d7b15fe2f3a357d051632fa18 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable No worries. I can wait. Thanks again for your efforts. On Sat, May 16, 2015 at 9:28 AM, Bjarte Johansen < bjarte.johansen@infomedia.uib.no> wrote: > > On 16 May 2015, at 15:00, Lawrence Bottorff wrote: > > I'm just a Prolog beginner, but this: > > #+begin_src prolog > edge(a,b). > edge(a,e). > edge(b,d). > edge(b,c). > edge(c,a). > edge(e,b). > tedge(Node1,Node2) :- > edge(Node1,SomeNode), > edge(SomeNode,Node2). > #+end_src > > keeps giving me this: > > executing Prolog code block... > executing Prolog source code block > org-babel-execute:prolog: Wrong type argument: char-or-string-p, ni > > > Thank you for reporting a bug. I think I see what the problem is. You > haven't defined a goal for the source block and ob-prolog doesn't guard f= or > that. It should be easy to fix, but I am not sure if I will be able to do > that before next week. If you want you can try to fix it yourself and sen= d > a PR on GitHub or a patch here. > > BTW, should it be > > (eval-after-load 'org > '(require 'ob-prolog)) > > or > > (eval-after-load "org" > '(require 'ob-prolog)) > > . . . org in quotes? > > > I think both should work. I can't check right now as I only have my phone > with me right now. > > > On Thu, May 14, 2015 at 5:03 PM, Bjarte Johansen < > bjarte.johansen@infomedia.uib.no> wrote: > >> >> > On 14 May 2015, at 20:22, Puneeth Chaganti wrote= : >> > >> > On Thu, May 14, 2015 at 11:41 PM, Lawrence Bottorff >> wrote: >> >> >> >> Confused by the requirement: >> >> >> >> ;; To activate ob-prolog add the following to your init.el file: >> >> ;; >> >> ;; (eval-after-load 'org >> >> ;; '(require 'org-prolog)) >> > >> > >> > I'm guessing its a typo and should be ob-prolog. The file provides >> ob-prolog. >> >> Yes, I typed it wrong. Thank you for bringing it to my attention. I also >> discovered that it is better to use `org-babel-do-load-languages=E2=80= =99 instead >> as well. I will change the recommendation tomorrow. >> >> Regards, >> Bjarte > > > --047d7b15fe2f3a357d051632fa18 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
No worries. I can wait. Thanks again for your efforts.

On Sat, May 16,= 2015 at 9:28 AM, Bjarte Johansen <bjarte.johansen@infomedi= a.uib.no> wrote:

On 16 May 2015, at 15:00, La= wrence Bottorff <= borgauf@gmail.com> wrote:

I'm just a Prolog beginner, but this:

=
#+begin_src prolog
edge(a,b).
edge(a,e).
edge(b,d).
edge(b,c).
edge(c,a).
edge(e= ,b).
tedge(Node1,Node2) :-
=C2=A0 =C2=A0 =C2=A0 =C2=A0 = edge(Node1,SomeNode),
=C2=A0 =C2=A0 =C2=A0 =C2=A0 edge(SomeNode,N= ode2).
#+end_src

keeps giving me t= his:

executing Prolog code block...
=
executing Prolog source code block
org-babel-execute:prolog:= Wrong type argument: char-or-string-p, ni

=

Thank you for reporting a bug. I t= hink I see what the problem is. You haven't defined a goal for the sour= ce block and ob-prolog doesn't guard for that. It should be easy to fix= , but I am not sure if I will be able to do that before next week. If you w= ant you can try to fix it yourself and send a PR on GitHub or a patch here.= =C2=A0

BTW, should it be

(eval-after-load &= #39;org
=C2=A0 '(require 'ob-prolog))
or=C2=A0

(eval-after-load "o= rg"
=C2=A0 '(require 'ob-prolog))
. . . org in quotes?

I think both should work. I can't check right now as I = only have my phone with me right now.=C2=A0


On Thu, May 14, 2015 at 5:03 PM, Bjarte Johansen <= bjarte.johansen@infomedia.uib.no> wrote:

> On 14 May 2015, at 20:22, Puneeth Chaganti <punchagan@gmail.com> wrote:
>
> On Thu, May 14, 2015 at 11:41 PM, Lawrence Bottorff <borgauf@gmail.com> wrote: >>
>> Confused by the requirement:
>>
>> ;; To activate ob-prolog add the following to your init.el file: >> ;;
>> ;;=C2=A0 (eval-after-load 'org
>> ;;=C2=A0 =C2=A0 '(require 'org-prolog))
>
>
> I'm guessing its a typo and should be ob-prolog. The file provides= ob-prolog.

Yes, I typed it wrong. Thank you for bringing it to my attentio= n. I also discovered that it is better to use `org-babel-do-load-languages= =E2=80=99 instead as well. I will change the recommendation tomorrow.

Regards,
Bjarte


--047d7b15fe2f3a357d051632fa18-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bjarte Johansen Subject: Re: org-babel for prolog Date: Sun, 17 May 2015 14:59:33 +0200 Message-ID: References: <65BF665A-C03D-4CCB-A8C6-A052BDD1BEBD@infomedia.uib.no> <619F74FC-4D9C-47FC-ADC8-2897FFF052F3@infomedia.uib.no> <04441E2C-21DB-4A7B-AF73-76D5AA2CA2CB@infomedia.uib.no> <38284347-6B57-4A67-A48C-5A6FA1D48160@infomedia.uib.no> Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2098\)) Content-Type: multipart/alternative; boundary="Apple-Mail=_2FF8B456-4FB4-4097-93AF-3538DD48BE56" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38032) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YtyAN-000598-2J for emacs-orgmode@gnu.org; Sun, 17 May 2015 08:59:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YtyAM-0002Pn-DS for emacs-orgmode@gnu.org; Sun, 17 May 2015 08:59:39 -0400 Received: from alfons.uib.no ([2001:700:200:30::141]:41418) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YtyAM-0002PB-6J for emacs-orgmode@gnu.org; Sun, 17 May 2015 08:59:38 -0400 In-Reply-To: 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: Lawrence Bottorff Cc: emacs-orgmode@gnu.org --Apple-Mail=_2FF8B456-4FB4-4097-93AF-3538DD48BE56 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On 16 May 2015, at 15:31, Lawrence Bottorff wrote: >=20 > No worries. I can wait. Thanks again for your efforts. I had some spare time today that I didn=E2=80=99t expect. I believe I = have fixed the bug. Kind regards, Bjarte --Apple-Mail=_2FF8B456-4FB4-4097-93AF-3538DD48BE56 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
On 16 May 2015, at 15:31, Lawrence Bottorff <borgauf@gmail.com> = wrote:

No worries. I can wait. Thanks again for your = efforts.

I had some = spare time today that I didn=E2=80=99t expect. I believe I have fixed = the bug.

Kind = regards,
Bjarte

= --Apple-Mail=_2FF8B456-4FB4-4097-93AF-3538DD48BE56--