Comment #1 on issue 2897 by [email protected]: Patch: Create \temporary for doing overrides without pop-first set
http://code.google.com/p/lilypond/issues/detail?id=2897#c1
Create \temporary for doing overrides without pop-first set Normal overrides change the top of the current property stack rather than pushing to it, by having the pop-first property set in the music. \temporary will remove this property from its argument's overrides. For property-changing music that is not an override, a warning will be generated. Calling \temporary \override and \revert in succession on the same property will have a net effect of zero. Similarly, pairing \temporary and \undo on the same music containing overrides will have a net effect of zero. In more complex arrangements, \revert will revert to the state before the last (matching) \temporary override of the same property. Properties are maintained conceptually using one stack per property per grob per context. Using \push/\pop instead of \temporary/\undo was deemed unsuitable for a musician-accessible user interface. http://codereview.appspot.com/6687044
