Skip to content

Commit

Permalink
Remove extra argument from invocation of org-babel--get-vars
Browse files Browse the repository at this point in the history
Introduced in 92dc5af, org-babel--get-vars only gets the :vars and
doesn't need us to tell which part of the header we are interested in.

Fixes #10.
  • Loading branch information
ljos committed Jan 26, 2017
1 parent 7e94309 commit dbc94ad
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 @@ -5,7 +5,7 @@
;; Author: Bjarte Johansen
;; Keywords: literate programming, reproducible research
;; URL: https://github.com/ljos/ob-prolog
;; Version: 1.0.0
;; Version: 1.0.1

;; This file is NOT part of GNU Emacs.

Expand Down Expand Up @@ -83,7 +83,7 @@

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

Expand Down

0 comments on commit dbc94ad

Please sign in to comment.