emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Lawrence Bottorff <borgauf@gmail.com>
To: Bjarte Johansen <bjarte.johansen@infomedia.uib.no>,
	emacs-orgmode@gnu.org
Subject: Re: org-babel for prolog
Date: Sat, 16 May 2015 09:31:25 -0400	[thread overview]
Message-ID: <CAFAhFSVZ5NjJLLPPkdhFSHH7AduJh45-Hm0+H4i=4M2vEBjm0g@mail.gmail.com> (raw)
In-Reply-To: <B34606FC-7BF5-48A8-A3D1-82B6A1913C16@infomedia.uib.no>

[-- Attachment #1: Type: text/plain, Size: 2128 bytes --]

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 <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) :-
>         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 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 want you can try to fix it yourself and send
> 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 <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:
>> >> ;;
>> >> ;;  (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’ instead
>> as well. I will change the recommendation tomorrow.
>>
>> Regards,
>> Bjarte
>
>
>

[-- Attachment #2: Type: text/html, Size: 3651 bytes --]

  parent reply	other threads:[~2015-05-16 13:31 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-10 17:20 org-babel for prolog Bjarte Johansen
2014-12-19 15:25 ` Bjarte Johansen
2015-01-02 13:29   ` Bjarte Johansen
2015-05-14 18:11     ` Lawrence Bottorff
2015-05-14 18:22       ` Puneeth Chaganti
2015-05-14 21:03         ` Bjarte Johansen
2015-05-16 13:00           ` Lawrence Bottorff
     [not found]             ` <B34606FC-7BF5-48A8-A3D1-82B6A1913C16@infomedia.uib.no>
2015-05-16 13:31               ` Lawrence Bottorff [this message]
2015-05-17 12:59                 ` Bjarte Johansen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAFAhFSVZ5NjJLLPPkdhFSHH7AduJh45-Hm0+H4i=4M2vEBjm0g@mail.gmail.com' \
    --to=borgauf@gmail.com \
    --cc=bjarte.johansen@infomedia.uib.no \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).