Skip to content

Commit

Permalink
Load files, run goal, then halt
Browse files Browse the repository at this point in the history
Fixes #12
  • Loading branch information
ljos committed Mar 28, 2018
1 parent 48814f5 commit 8e34b27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ob-prolog.el
Original file line number Diff line number Diff line change
Expand Up @@ -169,14 +169,14 @@ This function is called by `org-babel-execute-src-block.'"
If no GOAL is given, the GOAL is replaced with HALT. This results in
running just the body through the Prolog process."
(let* ((tmp-file (org-babel-temp-file "prolog-"))
(command (format "%s -q -l %s -t \"%s\""
(command (format "%s --quiet -l %s -g \"%s\" -t 'halt'"
org-babel-prolog-command
tmp-file
(replace-regexp-in-string
"\"" "\\\"" (or goal "halt")))))
(with-temp-file tmp-file
(insert (org-babel-chomp body)))
(org-babel-eval command "")))
(or (org-babel-eval command "") "")))

(defun org-babel-prolog--session-load-clauses (session clauses)
(with-current-buffer session
Expand Down

0 comments on commit 8e34b27

Please sign in to comment.