From mboxrd@z Thu Jan 1 00:00:00 1970 From: Grant Rettke Subject: file-truename: Variable binding depth exceeds max-specpdl-size when tangling Date: Wed, 20 Aug 2014 16:19:21 -0500 Message-ID: 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]:44420) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XKDHw-0007dk-0U for emacs-orgmode@gnu.org; Wed, 20 Aug 2014 17:19:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XKDHv-0003Mp-8K for emacs-orgmode@gnu.org; Wed, 20 Aug 2014 17:19:23 -0400 Received: from mail-ob0-x22e.google.com ([2607:f8b0:4003:c01::22e]:42394) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XKDHv-0003Mk-34 for emacs-orgmode@gnu.org; Wed, 20 Aug 2014 17:19:23 -0400 Received: by mail-ob0-f174.google.com with SMTP id vb8so6723075obc.19 for ; Wed, 20 Aug 2014 14:19:22 -0700 (PDT) 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: "emacs-orgmode@gnu.org" 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 | =C2=ABdemo=C2=BB | #+end_src `---- When you try and tangle this, you get the error: file-truename: Variable binding depth exceeds max-specpdl-size You can increase the size but it will run out: =E2=95=AD=E2=94=80=E2=94=80=E2=94=80=E2=94=80 =E2=94=82 (setq max-specpdl-size 1500) =E2=95=B0=E2=94=80=E2=94=80=E2=94=80=E2=94=80 Feel like I have caused an endless loop by asking babel to collect all references to `demo' and place them inside of a sourceblock, when that sourceblock itself will be collected. That said, I'm not sure where to go next and simply moved it up one heading. Questions: =E2=80=A2 What did I do wrong here? =E2=80=A2 Am I the only one to ever encounter this? =E2=80=A2 Web search did not reveal a lot quickly Here is the org and emacs version =E2=95=AD=E2=94=80=E2=94=80=E2=94=80=E2=94=80 =E2=94=82 (org-version nil t) =E2=95=B0=E2=94=80=E2=94=80=E2=94=80=E2=94=80 =E2=95=AD=E2=94=80=E2=94=80=E2=94=80=E2=94=80 =E2=94=82 Org-mode version 8.2.7c (8.2.7c-25-g1faeb4-elpaplus @ /Users/gcr/.emacs.d/.cask/24.3.1/elpa/org-plus-contrib-20140811/) =E2=95=B0=E2=94=80=E2=94=80=E2=94=80=E2=94=80 =E2=95=AD=E2=94=80=E2=94=80=E2=94=80=E2=94=80 =E2=94=82 (emacs-version) =E2=95=B0=E2=94=80=E2=94=80=E2=94=80=E2=94=80 =E2=95=AD=E2=94=80=E2=94=80=E2=94=80=E2=94=80 =E2=94=82 GNU Emacs 24.3.1 (x86_64-apple-darwin13.2.0, Carbon Version 1.6= .0 AppKit 1265.2) =E2=94=82 of 2014-07-03 on orion =E2=95=B0=E2=94=80=E2=94=80=E2=94=80=E2=94=80 Kind regards, gcr