2.3.2 Music function usage

Music functions may currently be used in several places. Depending on where they are used, restrictions apply in order to be able to parse them unambiguously. The result a music function returns must be compatible with the context in which it is called.

The special rules for trailing arguments make it possible to write polymorphic functions like \tweak that can be applied to different constructs.

Other languages: deutsch, español, français.
About automatic language selection.

LilyPond — Extending v2.18.2 (stable-branch).