]> git.donarmstrong.com Git - lilypond.git/commit
Issue 3225: Decouple \defaultchild from \accepts list in contexts
authorDavid Kastrup <dak@gnu.org>
Tue, 5 Mar 2013 10:33:04 +0000 (11:33 +0100)
committerDavid Kastrup <dak@gnu.org>
Fri, 8 Mar 2013 23:45:02 +0000 (00:45 +0100)
commit91aeca2562af49ff24110e923d5196bebd95f372
tree6bc9bfec99d119cfd6b604db0212d1de3d4f3cda
parent94edce7b4f5b5c47e52d4087f9939dec5115c2ba
Issue 3225: Decouple \defaultchild from \accepts list in contexts

The definition of a Bottom context previously was a context not
accepting any subcontexts.  Now it is a context without a
\defaultchild.  The defaultchild of a context previously was the first
found in the \accepts list (if necessary, moving it there).  While
\defaultchild was tracked in context definitions, it was not explicit
in instantiated contexts.

Decoupling those makes for more flexible arrangements of contexts.
For example, one might let Voice accept a SubVoice context without
forcing SubVoice to be created when a Bottom context is called for
when in Voice, simply by not giving Voice a \defaultchild.
Documentation/notation/changing-defaults.itely
lily/context-def.cc
lily/context.cc
lily/global-context.cc
lily/include/context.hh
ly/performer-init.ly