branch: externals/org commit 224d455d60b21bd5aceccdc6ab2932b99a2f1cfe Author: Ihor Radchenko <yanta...@posteo.net> Commit: Ihor Radchenko <yanta...@posteo.net>
* lisp/ob-ocaml.el: Document all the function arguments (org-babel-execute:ocaml): (org-babel-variable-assignments:ocaml): Fix docstrings. --- lisp/ob-ocaml.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lisp/ob-ocaml.el b/lisp/ob-ocaml.el index 4ab58e1504..bece59baa1 100644 --- a/lisp/ob-ocaml.el +++ b/lisp/ob-ocaml.el @@ -63,7 +63,7 @@ :type 'string) (defun org-babel-execute:ocaml (body params) - "Execute a block of Ocaml code with Babel." + "Execute Ocaml BODY according to PARAMS." (let* ((full-body (org-babel-expand-body:generic body params (org-babel-variable-assignments:ocaml params))) @@ -121,7 +121,8 @@ (get-buffer tuareg-interactive-buffer-name))) (defun org-babel-variable-assignments:ocaml (params) - "Return list of ocaml statements assigning the block's variables." + "Return list of ocaml statements assigning the block's variables. +The variables are defined in PARAMS." (mapcar (lambda (pair) (format "let %s = %s;;" (car pair) (org-babel-ocaml-elisp-to-ocaml (cdr pair))))