lilypond-user
[Top][All Lists]
Advanced

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

Re: Omitting the destination on a call to format is deprecated. Pass #f


From: Federico Bruni
Subject: Re: Omitting the destination on a call to format is deprecated. Pass #f as the destination, before the format string.
Date: Sat, 29 Oct 2022 17:16:38 +0200

Il giorno sab 29 ott 2022 alle 00:42:11 +0200, Valentin Petzel <valentin@petzel.at> ha scritto:
If we omit this destination argument format will handle it as #f but pass this
warning.

Now these messages you get should either come from
A) The score itself using format
B) The score using a function that uses format

I’ve grepped through the current git master sources and all occurances of format do specify a port. This means that most likely you are using some custom scheme functions or libraries that use format. To fix these warnings replace all occurrances of (format string ...) by (format #f string ...) in
such files.

Thanks for the detailed explanation!
Here's the culprit:

diff --git a/ly/myStyle.ly b/ly/myStyle.ly
index af18062..2defb00 100644
--- a/ly/myStyle.ly
+++ b/ly/myStyle.ly
@@ -14,7 +14,7 @@ A=\rightHandFinger #4
tenutoFingeringMark = \markup { \text \fontsize #2 \bold "t" }

t = #(define-event-function (n) (index?)
- #{ \finger \markup \concat { #(format "~d" n) \tenutoFingeringMark } #}) + #{ \finger \markup \concat { #(format #f "~d" n) \tenutoFingeringMark } #})






reply via email to

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