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