From: Grant Rettke <gcr@wisdomandwonder.com>
To: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: file-truename: Variable binding depth exceeds max-specpdl-size when tangling
Date: Wed, 20 Aug 2014 16:19:21 -0500 [thread overview]
Message-ID: <CAAjq1mf2hVDOEY+2LM9LKbnW=MkE72icg-VqeiAGgXwSc37h0Q@mail.gmail.com> (raw)
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
`----
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:
╭────
│ (setq max-specpdl-size 1500)
╰────
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:
• What did I do wrong here?
• Am I the only one to ever encounter this?
• Web search did not reveal a lot quickly
Here is the org and emacs version
╭────
│ (org-version nil t)
╰────
╭────
│ 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/)
╰────
╭────
│ (emacs-version)
╰────
╭────
│ GNU Emacs 24.3.1 (x86_64-apple-darwin13.2.0, Carbon Version 1.6.0
AppKit 1265.2)
│ of 2014-07-03 on orion
╰────
Kind regards,
gcr
next reply other threads:[~2014-08-20 21:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-20 21:19 Grant Rettke [this message]
2014-08-20 21:25 ` file-truename: Variable binding depth exceeds max-specpdl-size when tangling Aaron Ecay
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAAjq1mf2hVDOEY+2LM9LKbnW=MkE72icg-VqeiAGgXwSc37h0Q@mail.gmail.com' \
--to=gcr@wisdomandwonder.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).