From da9d8bece991303810aa39bf6245cb9a2051fefb Mon Sep 17 00:00:00 2001 From: Joseph LaFreniere Date: Tue, 27 Mar 2018 19:17:48 -0500 Subject: [PATCH] Add docstring to org-babel-prolog--variable-assignment --- ob-prolog.el | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ob-prolog.el b/ob-prolog.el index 7a257cf..c4c66b9 100644 --- a/ob-prolog.el +++ b/ob-prolog.el @@ -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))))