1
0
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2025-02-01 20:54:25 +00:00

Noweb style references are now expanded with loading a code block in a session.

* lisp/ob.el (org-babel-load-in-session): expanding noweb references
  when appropriate
This commit is contained in:
Aditya Siram 2010-08-25 12:21:13 -06:00 committed by Eric Schulte
parent 869b2693a5
commit 58f0a4ed41

View File

@ -421,8 +421,12 @@ session."
(interactive)
(let* ((info (or info (org-babel-get-src-block-info)))
(lang (nth 0 info))
(body (nth 1 info))
(params (nth 2 info))
(body (setf (nth 1 info)
(if (and (cdr (assoc :noweb params))
(string= "yes" (cdr (assoc :noweb params))))
(org-babel-expand-noweb-references info)
(nth 1 info))))
(session (cdr (assoc :session params)))
(dir (cdr (assoc :dir params)))
(default-directory