1
0
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-11-25 07:27:57 +00:00

* lisp/ob-ocaml.el: Document all the function arguments

(org-babel-execute:ocaml):
(org-babel-variable-assignments:ocaml): Fix docstrings.
This commit is contained in:
Ihor Radchenko 2023-09-23 14:23:59 +03:00
parent 4d0f89672a
commit 224d455d60
No known key found for this signature in database
GPG Key ID: 6470762A7DA11D8B

View File

@ -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))))