Re: [O] org-babel for prolog

2015-05-17 Thread Bjarte Johansen
> On 16 May 2015, at 15:31, Lawrence Bottorff wrote: > > No worries. I can wait. Thanks again for your efforts. I had some spare time today that I didn’t expect. I believe I have fixed the bug. Kind regards, Bjarte

Re: [O] org-babel for prolog

2015-05-16 Thread Lawrence Bottorff
No worries. I can wait. Thanks again for your efforts. On Sat, May 16, 2015 at 9:28 AM, Bjarte Johansen < bjarte.johan...@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). > e

Re: [O] org-babel for prolog

2015-05-16 Thread Lawrence Bottorff
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

Re: [O] org-babel for prolog

2015-05-14 Thread Bjarte Johansen
> 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)) > >

Re: [O] org-babel for prolog

2015-05-14 Thread Puneeth Chaganti
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-

Re: [O] org-babel for prolog

2015-05-14 Thread Lawrence Bottorff
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

Re: [O] org-babel for prolog

2015-01-02 Thread Bjarte Johansen
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 implem

Re: [O] org-babel for prolog

2014-12-19 Thread Bjarte Johansen
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’t ask if you want to get the next possible

[O] org-babel for prolog

2014-12-10 Thread Bjarte Johansen
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’t do the corr