David Nalesnik <david.nales...@gmail.com> writes: > On Sat, Oct 13, 2012 at 8:15 AM, David Kastrup <d...@gnu.org> wrote: >> David Nalesnik <david.nales...@gmail.com> writes: > >>> >>> Buildup of unwanted data or no, it would be useful to be able to write >>> something like >>> >>> \toLast Accidental #'color >>> >>> to restore the previous override >> >> But which is the "previous override" if you have several in a row? >> > > I see your point. I simply meant the immediately preceding override. So: > > \override Accidental color = #green > \override Accidental color = #red > \override Accidental color = #blue > [...] > \toLast Accidental color > > would restore red
\override Accidental color = #green \override Accidental color = #red \push\override Accidental color = #blue [...] \revert Accidental color or, if you prefer \override Accidental color = #green \override Accidental color = #red \temporary\override Accidental color = #blue [...] \revert Accidental color \revert will go back to the value before the last \temporary/push override. -- David Kastrup _______________________________________________ lilypond-devel mailing list lilypond-devel@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-devel