Reinhold Kainhofer <reinh...@kainhofer.com> writes: > Am Mittwoch, 26. Januar 2011, um 20:00:31 schrieb David Kastrup: >> Reinhold Kainhofer <reinh...@kainhofer.com> writes: >> > I'm defining my own predicate symbol-or-markup? for the argument of a >> > markup function. > [...] >> > but, as soon as I try to pass a markup, the parser complains that it >> > expects an SCM_IDENTIFIER or SCM_TOKEN: >> > \markup \mytest "test" \bold "f" >> > >> > markup-or-symbol.ly:15:21: Fehler: syntax error, unexpected STRING, >> > expecting SCM_IDENTIFIER or SCM_TOKEN >> > \markup \mytest "test >> > " \bold "f" >> >> markup? is specially detected and implemented in the parser. It is >> never actually called but rather used as a switch. >> >> markup-or-symbol? isn't. All predicates not recognized as markup? or >> markup-list? expect a Scheme expression that will then be checked for >> validity using the respective predicate. > > Okay, so it is currently not possible to write a markup function that takes a > markup or symbol (or any other scheme expression) as its argument?
Your original code should work without modification now. -- David Kastrup _______________________________________________ lilypond-devel mailing list lilypond-devel@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-devel