Skip to content

Commit

Permalink
Replace use of org-babel-get-header
Browse files Browse the repository at this point in the history
org-babel-get-header was removed in Org#0d000f5 (babel: small change
in API, 2015-10-29)
  • Loading branch information
ljos committed Dec 19, 2016
1 parent 548986d commit 92dc5af
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions ob-prolog.el
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,9 @@

(defun org-babel-variable-assignments:prolog (params)
(let ((strs (mapcar #'org-babel-prolog--variable-assignment
(mapcar #'cdr
(org-babel-get-header params :var)))))
(mapcar #'cdr (org-babel--get-vars params :var)))))
(when strs
(list
(concat ":- " (mapconcat #'identity strs ", ") ".\n")))))
(list (concat ":- " (mapconcat #'identity strs ", ") ".\n")))))

(defun org-babel-prolog--parse-goal (goal)
"Evaluate inline emacs-lisp in prolog goal parameter.
Expand Down

0 comments on commit 92dc5af

Please sign in to comment.