Hi Grant, 2014ko abuztuak 20an, Grant Rettke-ek idatzi zuen: > > Good afternoon, > > While debugging one of my babel documents, I re-read [this] > documentation on `:noweb-ref'. > > What I had wanted to do was to define a bunch of source blocks and then > at the end of the heading to tangle them all into a file. This was just > a natural thing to do while /in the flow/ and *not* thinking about the > document structure. > > Here is the simplest possible example. > > ,---- > | > | * Demo > | :PROPERTIES: > | :noweb-ref: demo > | :END: > | > | #+begin_src emacs-lisp > | (message "demo") > | #+end_src > | > | #+begin_src emacs-lisp > | (message "this") > | #+end_src > | > | #+begin_src sh :tangle ~/tmp/demo.el :noweb yes > | «demo» > | #+end_src > `----
Because the to-be-tangled code block is also under the headline with the :noweb-ref property, it will try to include itself inside itself, leading to an infinite regress. Adding a headline before the third code block fixes the issue. -- Aaron Ecay