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

Clean up documentation #16

Merged
merged 13 commits into from
Mar 28, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add docstring to org-babel-prolog--variable-assignment
  • Loading branch information
lafrenierejm committed Mar 28, 2018
commit da9d8bece991303810aa39bf6245cb9a2051fefb
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