From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lawrence Bottorff Subject: Babel prolog not working Date: Wed, 25 Jan 2017 21:08:00 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a113de104927b2c0546f5d150 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50330) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cWZTm-0000tC-Ou for emacs-orgmode@gnu.org; Wed, 25 Jan 2017 21:08:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cWZTl-0004YC-IX for emacs-orgmode@gnu.org; Wed, 25 Jan 2017 21:08:02 -0500 Received: from mail-oi0-x236.google.com ([2607:f8b0:4003:c06::236]:36169) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cWZTl-0004Y1-EA for emacs-orgmode@gnu.org; Wed, 25 Jan 2017 21:08:01 -0500 Received: by mail-oi0-x236.google.com with SMTP id u143so128385912oif.3 for ; Wed, 25 Jan 2017 18:08:01 -0800 (PST) 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" To: emacs-orgmode Mailinglist --001a113de104927b2c0546f5d150 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On my original system, as well on a built-from-scratch system, babel prolog won't work for me. I've got latest swi-prolog 7.4.0 installed, along with Emacs 25.1.1, and org 9.0.4, along with ob-prolog 20170102.953, and prolog (major mode) 1.22. Anything I put in a code block, e.g., #+BEGIN_SRC prolog [likes.pl]. #+END_SRC results in (*Messages*) executing Prolog code block... executing Prolog source code block org-babel-variable-assignments:prolog: Wrong number of arguments: (1 . 1), = 2 Doing C-h f brings up org-babel-variable-assignments:prolog is a compiled Lisp function in =E2=80=98ob-prolog.el=E2=80=99. (org-babel-variable-assignments:prolog PARAMS) Not documented. . . . and I found it in https://github.com/ljos/ob-prolog/blob/master/ob-prolog.el, but can't fathom what is going wrong. Regular, non-org prolog major mode interactions work fine. I know I try everyone's patience on this list, but I'm trying out many different languages' babel capabilities -- and reporting my "findings." LB --001a113de104927b2c0546f5d150 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On my original system, as well on a built-from-scratch sys= tem, babel prolog won't work for me. I've got latest swi-prolog 7.4= .0 installed, along with Emacs 25.1.1, and org 9.0.4, along with ob-prolog= =C2=A020170102.953, and prolog (major mode) 1.22. Anything I put in a code = block, e.g.,=C2=A0

#+BEGIN_SRC prolog
#+END_SRC
=
results in (*Messages*)

= executing Prolog code block...
executing Prolog source code block=
org-babel-variable-assignments:prolog: Wrong number of arguments= : (1 . 1), 2

Doing C-h f brings up=C2=A0

org-babel-variable-assignments:prolog is a compi= led Lisp function in
=E2=80=98ob-prolog.el=E2=80=99.
(o= rg-babel-variable-assignments:prolog PARAMS)
Not documented.<= br>

. . . and I found it in=C2=A0https://github.= com/ljos/ob-prolog/blob/master/ob-prolog.el, but can't fathom what = is going wrong.

Regular, non-org prolog major mode= interactions work fine.

I know I try everyone'= ;s patience on this list, but I'm trying out many different languages&#= 39; babel capabilities -- and reporting my "findings."
=
LB
--001a113de104927b2c0546f5d150--