lilypond-devel
[Top][All Lists]
Advanced

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

Re: LSR update?


From: Jean Abou Samra
Subject: Re: LSR update?
Date: Tue, 27 Dec 2022 17:11:33 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0

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.


?

I took the snippet code and replaced

  (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

  (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)))

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

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


reply via email to

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