[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org 5da44c7ba1 1/2: * lisp/ob-js.el: Document all the f
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org 5da44c7ba1 1/2: * lisp/ob-js.el: Document all the function arguments |
Date: |
Mon, 18 Sep 2023 06:58:16 -0400 (EDT) |
branch: externals/org
commit 5da44c7ba1baf16a1b3b4d8ee827f059dc568f22
Author: Ihor Radchenko <yantar92@posteo.net>
Commit: Ihor Radchenko <yantar92@posteo.net>
* lisp/ob-js.el: Document all the function arguments
(org-babel-execute:js):
(org-babel-variable-assignments:js):
---
lisp/ob-js.el | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/lisp/ob-js.el b/lisp/ob-js.el
index ba68e6d46d..601ae19213 100644
--- a/lisp/ob-js.el
+++ b/lisp/ob-js.el
@@ -76,7 +76,7 @@
"Javascript code to print value of body.")
(defun org-babel-execute:js (body params)
- "Execute a block of Javascript code with org-babel.
+ "Execute Javascript BODY according to PARAMS.
This function is called by `org-babel-execute-src-block'."
(let* ((org-babel-js-cmd (or (cdr (assq :cmd params)) org-babel-js-cmd))
(session (cdr (assq :session params)))
@@ -158,7 +158,8 @@ specifying a variable of the same value."
session))
(defun org-babel-variable-assignments:js (params)
- "Return list of Javascript statements assigning the block's variables."
+ "Return list of Javascript statements assigning the block's variables.
+The variables are defined in PARAMS."
(mapcar
(lambda (pair) (format "var %s=%s;"
(car pair) (org-babel-js-var-to-js (cdr pair))))