[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] file-truename: Variable binding depth exceeds max-specpdl-size w
From: |
Aaron Ecay |
Subject: |
Re: [O] file-truename: Variable binding depth exceeds max-specpdl-size when tangling |
Date: |
Wed, 20 Aug 2014 17:25:51 -0400 |
User-agent: |
Notmuch/0.18.1+51~gbbbdf04 (http://notmuchmail.org) Emacs/24.4.50.2 (x86_64-unknown-linux-gnu) |
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