[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 15:56:23 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Werner LEMBERG <wl@gnu.org> writes:
>> oo = #(define-music-function (parser location prop value)
>> (symbol-list? scheme?)
>> #{ \once \override #prop = #value #})
>>
>> should likely work fine in 2.18.
>
> Thanks! Aaron provided this version
>
> oo = #(define-music-function (parser location prop value)
> (list? scheme?)
> #{ \once \override $prop = #value #})
>
> and I wonder which one is better...
Well, I prefer not investing the overhead of $ when # is sufficient, and
I prefer using predicates that are specific enough to lead to error
messages at the place where the wrong input is rather than triggering
followup errors.
Given correct input, they should do the same.
--
David Kastrup
Re: macro for \once\override, Andrew Bernard, 2020/08/27
- Re: macro for \once\override, Werner LEMBERG, 2020/08/27
- Re: macro for \once\override, Andrew Bernard, 2020/08/28
- Re: macro for \once\override, Werner LEMBERG, 2020/08/28
- Re: macro for \once\override, David Kastrup, 2020/08/28
- Re: macro for \once\override, Werner LEMBERG, 2020/08/28
- Re: macro for \once\override, Carl Sorensen, 2020/08/28
- Re: macro for \once\override, Werner LEMBERG, 2020/08/28