Draft:Improve the scheme interface for finding contexts.
The original scheme interface (ly:context-find ctx name)
searches for parents of ctx
with name name
. This extends the syntax to (ly:context-find ctx name id="" direction=UP create=#f)
to allow searching a context by its context ID and to allow specifying the direction UP,DOWN,CENTER
of the search, as well as the creation mechanism.
Also this creates a scheme handle (ly:context-find-top ctx)
for find_top_context
and creates a new functionality find_all_contexts
with scheme handle (ly:context-find-all name id)
which performs a search downwards and returns a list of all found contexts.