Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't make it work. . . #21

Closed
borgauf opened this issue Nov 4, 2019 · 8 comments
Closed

Can't make it work. . . #21

borgauf opened this issue Nov 4, 2019 · 8 comments

Comments

@borgauf
Copy link

borgauf commented Nov 4, 2019

This may sound vague, but I'm on Emacs 26.3 and have latest org-mode, latest stable SWI-Prolog, but nothing I do seems to make Prolog in org-mode work. Can you perhaps give us a more detailed setup and execution tutorial?

@ljos
Copy link
Owner

ljos commented Nov 4, 2019

It might be that there is something new with the latest versions. There is a second issue that hints that something changed. I will have a look when I have the time.

@borgauf
Copy link
Author

borgauf commented Nov 4, 2019 via email

@ljos
Copy link
Owner

ljos commented Nov 6, 2019

If you look in the README now there are some instruction that you can follow. Let me know if you get it working (or not).

@ljos
Copy link
Owner

ljos commented Nov 6, 2019

Basically, you need to add ob-prolog.el to the load path and as a language that org-babel can use.

There is still #20 that I couldn't figure out. So sessions won't work. Either it is a emacs bug or some strange interaction with some of the hooks that I have to add.

@borgauf
Copy link
Author

borgauf commented Nov 6, 2019 via email

@ljos
Copy link
Owner

ljos commented Nov 8, 2019

  • Org mode version 9.1.9
  • GNU Emacs 26.3
  • SWI-Prolog version 8.0.3

emacs -q -l ob-prolog.el --eval "(org-babel-do-load-languages 'org-babel-load-languages '((prolog . t)))" test/test-ob-prolog.org

If I run the first test in that file I get the result:

| Hello | org_mode.  |

@borgauf
Copy link
Author

borgauf commented Nov 26, 2019 via email

@ljos
Copy link
Owner

ljos commented Nov 26, 2019

It is not intended, but it is a known issue (see #20). :session doesn't work right now. I think it is some mismatch in how consult(user) is handled. It is difficult to debug as there are callbacks etc. I will try and have a look again tonight if I get the time.

Closing the main issue here as fixed and deferring the remaining problem to #20.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants