[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.
- LSR update?, Jean Abou Samra, 2022/12/20
- Message not available
- Message not available
- Re: LSR update?, Thomas Morley, 2022/12/27
- Re: LSR update?, Jean Abou Samra, 2022/12/27
- Re: LSR update?, Thomas Morley, 2022/12/27
- Re: LSR update?, Jean Abou Samra, 2022/12/27
- Re: LSR update?, Thomas Morley, 2022/12/27
- Re: LSR update?, Jean Abou Samra, 2022/12/27
- Re: LSR update?, Werner LEMBERG, 2022/12/28
- Re: LSR update?, Thomas Morley, 2022/12/27
- Re: LSR update?, Jean Abou Samra, 2022/12/27
- Re: LSR update?,
Thomas Morley <=
- Re: LSR update?, Jean Abou Samra, 2022/12/27
- Re: LSR update?, Thomas Morley, 2022/12/27