lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ly:context-mod? list to string


From: Urs Liska
Subject: Re: ly:context-mod? list to string
Date: Wed, 04 Dec 2013 07:29:00 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.1.1

Am 03.12.2013 23:17, schrieb Urs Liska:
Am 03.12.2013 20:39, schrieb David Kastrup:
Urs Liska <address@hidden> writes:

When I use ly:context-mod? for a parameter in a music function a
string as the final part will be cut to list items.

if I write
\function \with { comment = "This should be verified" }

then the ly:context-mod? variable will hold

((assign comment This should be verified))

cdr-ing makes it (comment This should be verified)

So what's the best (or canonic) way to make that (comment "This should
be verified") again?
**Bing** Now it is so again.

More seriously: that's what it always has been.  Use "write" instead of
"display" and you'll probably see what you want to.

If you use format for output, learn about the difference between ~a and
~s formats.


Thanks for pointing this out.
with "write" I indeed see what I want to.

But when I try to pass that to a ly:message I'll get

Wrong type argument in position 1 (expecting string): ("critical-remark")



Still driving me crazy all this ...

+1


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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]