]> git.donarmstrong.com Git - lilypond.git/commitdiff
Issue 3950: \relative inside \unfold doesn't cause an extra staff anymore
authorDavid Kastrup <dak@gnu.org>
Thu, 12 Jun 2014 11:13:16 +0000 (13:13 +0200)
committerDavid Kastrup <dak@gnu.org>
Fri, 20 Jun 2014 11:46:10 +0000 (13:46 +0200)
This is a result of issue 3797.  It might be nice to come up with
another example demonstrating undesired implicit context creation, but
this example was rather a bug than a direct consequence of well-defined
but possibly sometimes inconvenient default behaviors.

Documentation/usage/running.itely

index b9d5b22601f8548b698065b87ed10e4a78d3f51c..95bbafd10383153aeb5083b6ff2c7c3c5a249145 100644 (file)
@@ -994,30 +994,6 @@ correct code to color all note heads red is
 }
 @end lilypond
 
-As a second example, if a @code{\relative} command is placed inside
-a @code{\repeat} command, two staves result, the second offset from
-the first, because the @code{\repeat} command generates two
-@code{\relative} blocks, which each implicitly create @code{Staff}
-and @code{Voice} blocks.
-
-@lilypond[quote,verbatim]
-\repeat unfold 2 {
-  \relative c' { c4 d e f }
-}
-@end lilypond
-
-Explicitly instantiating the @code{Voice} context fixes the
-problem:
-
-@lilypond[quote,verbatim]
-\new Voice {
-  \repeat unfold 2 {
-    \relative c' { c4 d e f }
-  }
-}
-@end lilypond
-
-
 @node Error message Unbound variable %
 @unnumberedsubsec Error message Unbound variable %