]> git.donarmstrong.com Git - lilypond.git/commitdiff
Issue 3303: Add some more documentation for \defaultchild
authorDavid Kastrup <dak@gnu.org>
Mon, 8 Apr 2013 09:41:22 +0000 (11:41 +0200)
committerDavid Kastrup <dak@gnu.org>
Sun, 14 Apr 2013 18:15:37 +0000 (20:15 +0200)
Documentation/notation/changing-defaults.itely

index 09cf63b5c020b30e65197d128adb9605595f621e..443329dfc59492677dd00d61b33cf4617df9888c 100644 (file)
@@ -1313,9 +1313,23 @@ another, but the required nesting differs.  For example, the
 with the @code{VaticanaVoice} context substituted for the @code{Voice}
 context in the @qq{accepts} list.
 
-Note that a context will be silently created implicitly if a command
-is encountered when there is no suitable context available to
-contain it.  This can give rise to unexpected new staves or scores.
+@cindex contexts, implicit
+@cindex implicit contexts
+@funindex \defaultchild
+
+Note that a context will be silently created implicitly if a
+command is encountered when there is no suitable context available
+to contain it.
+
+Within a context definition, the type of subcontext to be
+implicitly created is specified using @code{\defaultchild}.  A
+number of music events require a @samp{Bottom} context: when such
+an event is encountered, subcontexts are created recursively until
+reaching a context with no @samp{defaultchild} setting.
+
+Implicit context creation can at times give rise to unexpected new
+staves or scores.  Using @code{\new} to create contexts explicitly
+avoids those problems.
 
 @cindex alignAboveContext
 @cindex alignBelowContext