Function: verb--request-spec-from-babel-src-block
verb--request-spec-from-babel-src-block is a natively compiled
function defined in verb.el.
Signature
(verb--request-spec-from-babel-src-block POS BODY VARS)
Documentation
Return a request spec generated from a Babel source block.
BODY should contain the body of the source block. POS should be a
position of the buffer that lies inside the source block. VARS should
be an alist of argument names and values that should be temporarily
added to the values available through verb-var.
Note that the entire buffer is considered when generating the request spec, not only the section contained by the source block.
This function is called from ob-verb.el (org-babel-execute:verb).
Source Code
;; Defined in /nix/store/8jnfn8w2mxcxbr2crbklcnija9m0zlkq-emacs-packages-deps/share/emacs/site-lisp/elpa/verb-20260818.1921/verb.el
(defun verb--request-spec-from-babel-src-block (pos body vars)
"Return a request spec generated from a Babel source block.
BODY should contain the body of the source block. POS should be a
position of the buffer that lies inside the source block. VARS should
be an alist of argument names and values that should be temporarily
added to the values available through `verb-var'.
Note that the entire buffer is considered when generating the request
spec, not only the section contained by the source block.
This function is called from ob-verb.el (`org-babel-execute:verb')."
(verb--load-preludes-from-hierarchy)
(save-excursion
(goto-char pos)
(let* ((verb--vars (append vars verb--vars))
(metadata (verb--heading-properties verb--metadata-prefix))
(rs (verb-request-spec-from-string body metadata)))
;; Go up one level first, if possible. Do this to avoid
;; re-reading the request in the current level (contained in the
;; source block). If no more levels exist, skip the call to
;; `verb--request-spec-from-hierarchy'.
(if (verb--up-heading)
;; Continue reading requests from the headings
;; hierarchy. Pre-include the one we read from the source block
;; at the end of the list.
(verb--request-spec-from-hierarchy rs)
(verb--request-spec-post-process rs)))))