Function: org-babel-expand-body:lilypond
org-babel-expand-body:lilypond is a byte-compiled function defined in
ob-lilypond.el.gz.
Signature
(org-babel-expand-body:lilypond BODY PARAMS)
Documentation
Expand BODY according to PARAMS, return the expanded body.
Source Code
;; Defined in /usr/src/emacs/lisp/org/ob-lilypond.el.gz
(defun org-babel-expand-body:lilypond (body params)
"Expand BODY according to PARAMS, return the expanded body."
(let ((vars (org-babel--get-vars params))
(prologue (cdr (assq :prologue params)))
(epilogue (cdr (assq :epilogue params))))
(mapc
(lambda (pair)
(let ((name (symbol-name (car pair)))
(value (cdr pair)))
(setq body
(replace-regexp-in-string
(concat "$" (regexp-quote name))
(if (stringp value) value (format "%S" value))
body t t))))
vars)
(concat
(and prologue (concat prologue "\n"))
body
(and epilogue (concat "\n" epilogue "\n")))))