[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Irrelevant src blocks can break noweb expansion

From: Nicolas Goaziou
Subject: Re: [O] Irrelevant src blocks can break noweb expansion
Date: Tue, 12 Dec 2017 08:42:55 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux)


"Berry, Charles" <address@hidden> 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.


Nicolas Goaziou

reply via email to

[Prev in Thread] Current Thread [Next in Thread]