lilypond-user
[Top][All Lists]
Advanced

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

Re: lilypond 2.21 & scheme unbound variable


From: David Kastrup
Subject: Re: lilypond 2.21 & scheme unbound variable
Date: Tue, 02 Apr 2019 01:04:26 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Aaron Hill <address@hidden> writes:

> On 2019-04-01 2:01 pm, Gianmaria Lari wrote:
>> The following function has been written by David Kastrup few years
>> ago but
>> it does  not compile on lilypond 2.21
>>
>> \version "2.21.0"
>>
>> newFinger =
>> #(define-event-function (arg) (number-or-markup?)
>>   #{ -\markup \underline \finger
>>      #(if (number? arg) (number->string arg) arg)
>>   #})
>>
>>
>> The error I get is the following:
>>
>> error: GUILE signaled an error for the expression beginning here
>>
>> #
>>
>> (define-event-function (arg) (number-or-markup?)
>>
>>
>> Unbound variable: number-or-markup?
>>
>> Unbound variable: number-or-markup?
>>
>>
>> How can I fix it?
>
> That's odd.  Granted, I am still on 2.19; but the docs include
> number-or-markup? as one of the pre-defined predicates provided by
> LilyPond.  Why would it have been removed for 2.21?

Because all of its uses would not have been able to deal with a
non-integer sensibly.

This change is not in the stable branch.  Arguably a problem.

-- 
David Kastrup



reply via email to

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