]> git.donarmstrong.com Git - lilypond.git/commitdiff
Let \footnote and \shape rely on \tweak for overrides
authorDavid Kastrup <dak@gnu.org>
Thu, 25 Oct 2012 12:48:46 +0000 (14:48 +0200)
committerDavid Kastrup <dak@gnu.org>
Wed, 31 Oct 2012 05:20:43 +0000 (06:20 +0100)
ly/music-functions-init.ly

index b060039322f950fcb4719c9a8760c42c64faea1e..f916551cc66a2b9c297a11e9ae6d57df9de1ce4d 100644 (file)
@@ -410,9 +410,7 @@ to the preceding note or rest as a post-event with @code{-}.")
               'automatically-numbered (not mark)
               'text (or mark (make-null-markup))
               'footnote-text footnote)))
-     (if (ly:music? item)
-         #{ \tweak footnote-music #mus #item #}
-         #{ \once\override $item #'footnote-music = #mus #})))
+     #{ \tweak footnote-music #mus #item #}))
 
 grace =
 #(def-grace-function startGraceMusic stopGraceMusic
@@ -1165,13 +1163,7 @@ appropriate tweak applied.")
        (if (>= total-found 2)
            (helper siblings offsets)
            (offset-control-points (car offsets)))))
-   (if (ly:music? item)
-       #{
-         \tweak control-points #shape-curve $item
-       #}
-       #{
-         \once \override $item #'control-points = #shape-curve
-       #}))
+   #{ \tweak control-points #shape-curve #item #})
 
 shiftDurations =
 #(define-music-function (parser location dur dots arg)