lilypond-user
[Top][All Lists]
Advanced

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

Re: ly:version? unbound variable


From: David Kastrup
Subject: Re: ly:version? unbound variable
Date: Wed, 01 May 2019 19:40:03 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Stefano Troncaro <address@hidden> writes:

> Hi everyone! According to this page in the manual
> <http://lilypond.org/doc/v2.19/Documentation/usage/writing-code-to-support-multiple-versions>
> the function ly:version? should be implemented, but the example given fails
> with the error 'unbound variable: ly:version?' which suggests it's not. I'm
> running it in 2.19.83, was this function deleted and the documentation not
> updated?
>
> Copying the example here:
>
> #(cond
>   ((ly:version? > '(2 20))
>    (ly:message "This is code to run for LilyPond after 2.20"))
>   ((ly:version? = '(2 19 57))
>    (ly:message "This will only be executed with LilyPond 2.19.57"))
>   (else (ly:message "This will be executed in any other version")))
>
>
> Does anyone know what is happening?

They were never exported: they are defined using define, not
define-public.  Now _that_ would have been a feature worth a regtest!

-- 
David Kastrup



reply via email to

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