lilypond-user
[Top][All Lists]
Advanced

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

Re: macro for \once\override


From: David Kastrup
Subject: Re: macro for \once\override
Date: Fri, 28 Aug 2020 00:11:32 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Werner LEMBERG <wl@gnu.org> writes:

>>> I wonder whether there is a possibility to have a working equivalent
>>> to
>>>
>>>   oo = \once\override
>>>
>>> so that I can say
>>>
>>>   \oo foo.bar = #'baz   .
>>
>> The best you can aim for is
>> 
>> \oo foo.bar #'baz
>
> This would be just fine.  The thing is to replace `\once\override`
> with something shorter.

oo = #(define-music-function (parser location prop value) (symbol-list? scheme?)
        #{ \once \override #prop = #value #})

should likely work fine in 2.18.

-- 
David Kastrup



reply via email to

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