lilypond-user
[Top][All Lists]
Advanced

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

Re: Consist engraver within loop


From: David Kastrup
Subject: Re: Consist engraver within loop
Date: Wed, 09 Mar 2016 10:41:47 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

Jan-Peter Voigt <address@hidden> writes:

> Hi Urs,
>
> try this line:
> #(eval ctx (current-module))
>
> Of course normally eval is evil, but in this case you just evaluate
> the name - the symbol - to the definition, which is stored under that
> name inside the scope of the layout block.

That's completely gratuitous use of eval.  Also # does not create a
copy, resulting in modifying the _global_ definition, a very bad idea.

This should rather be

$(module-ref (current-module) ctx)

-- 
David Kastrup



reply via email to

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