lilypond-devel
[Top][All Lists]
Advanced

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

Re: LSR update?


From: Thomas Morley
Subject: Re: LSR update?
Date: Tue, 27 Dec 2022 17:44:46 +0100

Am Di., 27. Dez. 2022 um 17:11 Uhr schrieb Jean Abou Samra <jean@abou-samra.fr>:
>
> Le 27/12/2022 à 17:06, Thomas Morley a écrit :
> >>>    TODO guile message about `string-delete'
> >>>    
> >>> adding-fingerings-or-string-numbers-or-stroke-fingerings-outside-of-the-music-code.ly
> >>
> >> Can be fixed by just inverting the arguments to string-delete.
> > Surprisingly not.
>
>
> ?

Obviously I don't understand:

>
> I took the snippet code and replaced
>

Here string-delete has two arguments. A string and a procedure.

>    (string-delete s
>        (lambda (c)
>          (case c
>            ((#\%)
>                  (if (not (char=? prev-char #\nul))
>                     (set! delete? #t)))
>            ((#\newline)(set! delete? #f)))
>          (set! prev-char c)
>          delete?))))
>
>
> with
>

Here string-delete has one argument, a procedure.

>    (string-delete
>        (lambda (c)
>          (case c
>            ((#\%)
>                  (if (not (char=? prev-char #\nul))
>                     (set! delete? #t)))
>            ((#\newline)(set! delete? #f)))
>          (set! prev-char c)
>          delete?)
>        s)))

Am I wrong?

> After this, it compiles without warning in 2.24 and gives the same
> output (minus small spacing differences) as 2.22.



reply via email to

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