Hello, "Berry, Charles" <ccbe...@ucsd.edu> writes:
> I used to avoid this by `(setq org-babel-use-quick-and-dirty-noweb-expansion > t)'. > > This illustrates the issue: > > #+begin_src org > > ,* abc > > ,#+begin_src R :comment (message "running on empty") > > ,#+end_src > > ,#+begin_src R :noweb yes > 1 > ,#+end_src > > > #+end_src > > The irrelevant, unnamed, empty src block its consulted via > org-babel-get-src-block-info. When? AFAICT, the second block doesn't contain any Noweb reference, so there is nothing to consult in the first place. IOW, something is missing in your recipe. Also, `org-babel-use-quick-and-dirty-noweb-expansion' was intended to skip properties check when collecting Noweb references from the buffer. I.e., Org would only trust "name" keyword and ":noweb-ref" header argument. Since there is no property in your example, I fail to see why `org-babel-use-quick-and-dirty-noweb-expansion' would apply here. Regards, -- Nicolas Goaziou