From mboxrd@z Thu Jan 1 00:00:00 1970 From: Aaron Ecay Subject: Re: file-truename: Variable binding depth exceeds max-specpdl-size when tangling Date: Wed, 20 Aug 2014 17:25:51 -0400 Message-ID: <87r40argyo.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45488) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XKDOG-0002LC-6x for emacs-orgmode@gnu.org; Wed, 20 Aug 2014 17:25:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XKDOF-0005c0-Co for emacs-orgmode@gnu.org; Wed, 20 Aug 2014 17:25:56 -0400 Received: from mail-qg0-x234.google.com ([2607:f8b0:400d:c04::234]:57763) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XKDOF-0005br-8W for emacs-orgmode@gnu.org; Wed, 20 Aug 2014 17:25:55 -0400 Received: by mail-qg0-f52.google.com with SMTP id f51so7935274qge.39 for ; Wed, 20 Aug 2014 14:25:54 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Grant Rettke , "emacs-orgmode@gnu.org" Hi Grant, 2014ko abuztuak 20an, Grant Rettke-ek idatzi zuen: >=20 > Good afternoon, >=20 > While debugging one of my babel documents, I re-read [this] > documentation on `:noweb-ref'. >=20 > 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. >=20 > Here is the simplest possible example. >=20 > ,---- > | > | * 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 > | =C2=ABdemo=C2=BB > | #+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. --=20 Aaron Ecay