Browse Source

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
Eric Schulte 10 years ago
parent
commit
f687f51dd0
1 changed files with 4 additions and 1 deletions
  1. 4 1
      lisp/ob-tangle.el

+ 4 - 1
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)))