]> git.donarmstrong.com Git - lilypond.git/commit
Issue 2929: Allow \tweak to act as a stand-in for \once\override
authorDavid Kastrup <dak@gnu.org>
Thu, 25 Oct 2012 12:46:15 +0000 (14:46 +0200)
committerDavid Kastrup <dak@gnu.org>
Wed, 31 Oct 2012 05:19:39 +0000 (06:19 +0100)
commit6e0f8d53951bfad582204df9a85a776463ac6614
tree0c6959fa0fa9073068c5880ede2eedde1ac28e53
parent9c3dc4d83c3d9c6c6c5f7dd69d45f6f6a6a1e030
Issue 2929: Allow \tweak to act as a stand-in for \once\override

Making tweak optionally accept a grob specification instead of music
to tweak makes it compatible with the behavior of functions such as
\footnote and \shape, and actually serves to simplify their
implementation.

One slight complication occurs in lyrics mode, as demonstrated by the
change necessary to input/regression/lyric-tweak.ly: with

    \tweak color #red reddish fish,

LilyPond tries an override for a grob named "reddish" and fails.
Tweaks in lyrics mode are highly unusual, have not been supported for
long, and their effect can usually better be accomplished in markup
mode instead.  The fix here is to write

    \tweak color #red \markup reddish fish,

since LilyPond does not consider explicit markup a candidate for
conversion into symbols.  The same problem is inherent with other
commands using the same kind of symbol-list-or-music? interface, like
\footnote, \hide, \omit.
input/regression/lyric-tweak.ly
ly/music-functions-init.ly