From f687f51dd0c21feb4c6bbcbc283b2b4b9842775f Mon Sep 17 00:00:00 2001 From: Eric Schulte Date: Wed, 6 Oct 2010 10:37:46 -0600 Subject: [PATCH] ob-exp: ":noweb tangle" now expands noweb references during tangling * lisp/ob-tangle.el (org-babel-tangle-collect-blocks): accepting "tangle" as a positive argument for the :noweb header argument during tangling --- lisp/ob-tangle.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lisp/ob-tangle.el b/lisp/ob-tangle.el index a9429c4c9..3a0426acd 100644 --- a/lisp/ob-tangle.el +++ b/lisp/ob-tangle.el @@ -294,7 +294,10 @@ code blocks by language." 'org-babel-expand-body:generic) body params))) (if (and (cdr (assoc :noweb params)) - (string= "yes" (cdr (assoc :noweb params)))) + (let ((nowebs (split-string + (cdr (assoc :noweb params))))) + (or (member "yes" nowebs) + (member "tangle" nowebs)))) (org-babel-expand-noweb-references info) (nth 1 info)))) (comment (when (or (string= "both" (cdr (assoc :comments params))) -- 2.11.4.GIT