Skip to content

Commit

Permalink
Add docstring to org-babel-prolog--variable-assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
lafrenierejm committed Mar 28, 2018
1 parent 69b2271 commit da9d8be
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ob-prolog.el
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,12 @@
(t (prin1-to-string value))))

(defun org-babel-prolog--variable-assignment (pair)
"Return a string of a recorda/2 assertion of (cdr PAIR) under (car PAIR).
The Emacs Lisp value of the car of PAIR is used as the Key argument to
recorda/2 without modification. The cdr of PAIR is converted to
equivalent Prolog before being provided as the Term argument to
recorda/2."
(format "recorda('%s', %s)"
(car pair)
(org-babel-prolog--elisp-to-pl (cdr pair))))
Expand Down

0 comments on commit da9d8be

Please sign in to comment.