Orm Finnendahl <orm.finnend...@hfmdk-frankfurt.de> writes: > Hi, > > Am Samstag, den 14. Juni 2014 um 16:56:36 Uhr (+0200) schrieb David Kastrup: >> Notice the - before the markup, turning this into a post-event. > > Thanks, that was the missing link. I had tried define-event-function > and got stuck as it appeared to be pre-event. > > BTW: This meaning of the error message is unclear to me: > >> > Parsing... >> > /tmp/markup-def.ly:11:20: error: music function cannot return >> > (#<procedure line-markup (layout props args)> (Test)) >> > \relative c' { a'^ >> > \sMarkup "Test" } > > Does it complain, that a music function cannot return at all or that > it should return something different from a procedure?
Would you have preferred /usr/local/tmp/lilypond/out/bin/lilypond orm.ly GNU LilyPond 2.19.8 Processing `orm.ly' Parsing... orm.ly:11:20: error: music function cannot return \markup \line { "Test"} \relative c' { a'^ \sMarkup "Test" } orm.ly:11:20: error: post-event expected \relative c' { a'^ \sMarkup "Test" } Interpreting music... Preprocessing graphical objects... Finding the ideal number of pages... Fitting music on 1 page... Drawing systems... Layout output to `orm.ps'... Converting to `./orm.pdf'... fatal error: failed files: "orm.ly" -- David Kastrup _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user