David Kastrup wrote:
So your examples are much too generic to give advice. It's likely that
you can solve your problem by using a much more specific predicate than
list? unless the form of list that you want to admit really needs to
allow something like a single-element string list.
Well no, the \liststring calls were to make a vividly correct contrast!
My case is like the \listnumber 333 call.
I can't imagine how list? could accept the number 333,
or why some putative automagic would want it to.
And if I use a more specific predicate and it solves the 2.19.39
problem, how can I know if it is going to stay solved?
I tried the following (which is probably nonsense):
%%%%%%%%
#(define (notnumber? x)
(not (number? x)))
listnumber =
#(define-music-function (parser location listarg numberarg)
((notnumber? '()) number?)
(let ((str (number->string numberarg)))
#{
c''1-\markup $str
#}))
%%%%%%%%
and it still says: error: wrong type for argument 2. Expecting number
Cheers,
Robin
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user