Am Di., 27. Dez. 2022 um 17:11 Uhr schrieb Jean Abou Samra <j...@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