[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ly:make-stencil arguments question
From: |
David Kastrup |
Subject: |
Re: ly:make-stencil arguments question |
Date: |
Thu, 19 Jan 2017 11:18:23 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) |
Urs Liska <address@hidden> writes:
> Am 19.01.2017 um 09:59 schrieb David Kastrup:
>> Urs Liska <address@hidden> writes:
>>
>>> Am 18.01.2017 um 21:18 schrieb Thomas Morley:
>>>> customClefStencilOne =
>>>> #(ly:make-stencil `(path 0.2 ',(func 1))
>>> ... I wouldn't have ever thought of that ', combination.
>>>
>>> I had yet another complication because in my actual case "func" would
>>> return an arbitrary number of path segments (i.e. lists) that had to be
>>> flattened with
>>>
>>> (apply append (map l-arc (make-list l-count dir)))
>> (append-map l-arc (make-list l-count dir))
>
> Thank you, this seems to be the appropriate expression.
>
>>
>> And if you need to _splice_ the result in as multiple elements rather
>> than a single list expression use ,@ instead of , for the splicing.
>> That removes the outer pair of parens, so to say.
>
> Well, in my case (for the path expression) I do need the list, so it's
> perfectly sufficient now.
> But just for my enlightenment: to use splicing I have to quasiquote the
> expression, isn't it?
It is. I mean, you have to.
--
David Kastrup