bug-lilypond
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Feature request: revert in another context


From: David Kastrup
Subject: Re: Feature request: revert in another context
Date: Mon, 28 Nov 2016 17:27:58 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

Simon Albrecht <address@hidden> writes:

> \version "2.19.49"
> %{
> It would be formidable if in such a case one wouldn’t need
> to look up the default stencil procedure, but could use either
> \undo or \revert.
> Is this a valid/sensible feature request?
> %}
> \score {
>   \new PianoStaff \with {
>     \omit SystemStartBrace
>     \accepts GrandStaff
>   } <<
>     \new GrandStaff \with {
>       % those don’t work
>       %\undo\omit SystemStartBrace
>       %\revert SystemStartBrace.stencil
>       % this does
>       \override SystemStartBrace.stencil =
> #ly:system-start-delimiter::print
>     } <<
>       \new Staff { 1 }
>       \new Staff { 1 }
>     >>
>     \new Staff { 1 }
>   >>
> }

The context modification for GrandStaff does not have access to the
unmodified definition of the enclosing PianoStaff (it doesn't even have
access to the unmodified definition of GrandStaff and does not know that
it will get applied to a GrandStaff) and even if it did, how should it
guess that you want to undo PianoStaff settings rather than Score
settings?

-- 
David Kastrup



reply via email to

[Prev in Thread] Current Thread [Next in Thread]