]> git.donarmstrong.com Git - lilypond.git/commit
Fix 380: Try to auto-detect cyclic references in header fields
authorReinhold Kainhofer <reinhold@kainhofer.com>
Fri, 9 Sep 2011 16:46:25 +0000 (18:46 +0200)
committerReinhold Kainhofer <reinhold@kainhofer.com>
Mon, 19 Sep 2011 10:35:51 +0000 (12:35 +0200)
commit25be0aa5e4481df77568b99357764f5b1ff46ceb
tree149c43b4fa1029e57f163b875294d9281c75a2cf
parente2ebf5785dd8eb5b195b614e7dca4f2a19363fc0
Fix 380: Try to auto-detect cyclic references in header fields

Inside \fromproperty, simply change the props so that all references to the
currently interpreted property point to a function that prints out
a warning and returns a null markup, while interpreting the contents
of the property.

This is a specialized case of the cycle detection, since the hare+
tortoise algorithm does not tell us where the cycle was causes.
For properties we have a simple way to detect cyclic dependencies,
so we can tell the user which definition caused the problem.
scm/define-markup-commands.scm