Am Freitag, 22. Oktober 2010, um 20:30:29 schrieb Werner LEMBERG:
> Interesting.  This
> 
>   T = #(define-music-function (parser location music) (ly:music?)
>         #{
>            \times 2/3 $music   % $
>         #}
>       )
> 
> does *not* work.  Looks like a bug...

It seems like the way to replace all $xxxx variables in the #{ ... #} section 
is not foolproof: It tries to replace everything starting with $, even if it 
is inside a comment. In particular, try this out:

   T = #(define-music-function (parser location music) (ly:music?)
         #{
            \times 2/3 $music   % $m
         #}
       )
This complains about Unbound variable: m

Cheers,
Reinhold

-- 
------------------------------------------------------------------
Reinhold Kainhofer, reinh...@kainhofer.com, http://reinhold.kainhofer.com/
 * Financial & Actuarial Math., Vienna Univ. of Technology, Austria
 * http://www.fam.tuwien.ac.at/, DVR: 0005886
 * LilyPond, Music typesetting, http://www.lilypond.org

_______________________________________________
lilypond-devel mailing list
lilypond-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to