From 7b5e0d38adf7b5be54e77431cd5ae7e27415bdc6 Mon Sep 17 00:00:00 2001 From: David Kastrup Date: Thu, 12 Jun 2014 13:13:16 +0200 Subject: [PATCH] Issue 3950: \relative inside \unfold doesn't cause an extra staff anymore 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 | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/Documentation/usage/running.itely b/Documentation/usage/running.itely index b9d5b22601..95bbafd103 100644 --- a/Documentation/usage/running.itely +++ b/Documentation/usage/running.itely @@ -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 % -- 2.39.2