lisp/ob-core: List all the arguments in some docstrings

* lisp/ob-core.el (org-babel-parse-multiple-vars):
(org-babel-goto-named-src-block):
(org-babel-goto-named-result): Describe all the function arguments in
the docstring.
This commit is contained in:
Ihor Radchenko 2023-08-24 13:27:17 +03:00
parent 85c94ecfc2
commit d5ee33fed8
No known key found for this signature in database
GPG Key ID: 6470762A7DA11D8B
1 changed files with 5 additions and 3 deletions

View File

@ -1736,7 +1736,9 @@ in parameters. Return an alist."
This allows expression of multiple variables with one :var as
shown below.
#+PROPERTY: var foo=1, bar=2"
#+PROPERTY: var foo=1, bar=2
HEADER-ARGUMENTS is alist of all the arguments."
(let (results)
(mapc (lambda (pair)
(if (eq (car pair) :var)
@ -1920,7 +1922,7 @@ src block, then return nil."
;;;###autoload
(defun org-babel-goto-named-src-block (name)
"Go to a named source-code block."
"Go to a source-code block with NAME."
(interactive
(let ((completion-ignore-case t)
(case-fold-search t)
@ -1980,7 +1982,7 @@ to `org-babel-named-src-block-regexp'."
;;;###autoload
(defun org-babel-goto-named-result (name)
"Go to a named result."
"Go to a result with NAME."
(interactive
(let ((completion-ignore-case t))
(list (completing-read "Source-block name: "