1
0
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-11-24 07:20:29 +00:00

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

(org-babel-execute:gnuplot):
(org-babel-variable-assignments:gnuplot):
This commit is contained in:
Ihor Radchenko 2023-09-15 12:58:25 +03:00
parent d70c1200f7
commit fd1418dadd
No known key found for this signature in database
GPG Key ID: 6470762A7DA11D8B

View File

@ -197,7 +197,7 @@ code."
body))
(defun org-babel-execute:gnuplot (body params)
"Execute a block of Gnuplot code.
"Execute Gnuplot BODY according to PARAMS.
This function is called by `org-babel-execute-src-block'."
(org-require-package 'gnuplot)
(let ((session (cdr (assq :session params)))
@ -252,7 +252,8 @@ This function is called by `org-babel-execute-src-block'."
buffer)))
(defun org-babel-variable-assignments:gnuplot (params)
"Return list of gnuplot statements assigning the block's variables."
"Return list of gnuplot statements assigning the block's variables.
PARAMS is src block parameters alist defining variable assignments."
(mapcar
(lambda (pair) (format "%s = \"%s\"" (car pair) (cdr pair)))
(org-babel-gnuplot-process-vars params)))