Thomas Morley <thomasmorle...@gmail.com> writes:

> use the predicate symbol-list-or-symbol?
> Below a working version, displaying some info as well:
>
> \version "2.19.8"
>
> ed =
> #(define-music-function (parser location grob mus)
>   (symbol-list-or-symbol? ly:music?)
> ;; displaying some info:
>     (format #t "\nI'm the list: \t\t\t~a
> My first entry is:          \t~a
> My next entry is:           \t~a
> My first entry is a symbol? \t~a
> My next entry is a symbol?  \t~a"
>                grob
>                (car grob)

Uh, you should _not_ be using symbol-list-or-symbol? if your code is not
prepared to accept a single symbol.  In that case, use just symbol-list?
as predicate.

-- 
David Kastrup

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to