lilypond-devel
[Top][All Lists]
Advanced

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

Re: make doc failure


From: John Mandereau
Subject: Re: make doc failure
Date: Tue, 11 Aug 2009 20:04:57 +0200

Le mardi 11 août 2009 à 15:44 +0200, John Mandereau a écrit :
> It looks like a grob suicides in Documentation/snippets/incipit.ly, as I
> get the backtrace below when issuing 'make doc'.  I suspect a check for
> SCM_UNSPECIFIED should be added either in the override in incipit.ly or
> in system-start-text::calc-y-offset definition, unless there should be
> no grob suicide, but then I have no clue.

Getting the Y-offset of InstrumentName seems to be really needed in this
particular snippet; I'll probably push the dirty fix below to be able to
complete the docs build (plus a FIXME in the texidoc) until this snippet
is really fixed.

diff --git a/Documentation/snippets/incipit.ly
b/Documentation/snippets/incipit.ly
index 3501ce2..df6d54b 100644
--- a/Documentation/snippets/incipit.ly
+++ b/Documentation/snippets/incipit.ly
@@ -29,7 +29,12 @@ incipit =
     \once \override Staff.InstrumentName #'self-alignment-Y = #UP
     \once \override Staff.InstrumentName #'Y-offset =
       #(lambda (grob)
-         (+ 4 (system-start-text::calc-y-offset grob)))
+        (let ((y-offset (system-start-text::calc-y-offset grob)))
+          (if (number? y-offset)
+            (+ 4 y-offset)
+            (begin
+             (ly:warning "grob committed suicide: ~a" grob)
+              4))))
     \once \override Staff.InstrumentName #'padding = #0.3
     \once \override Staff.InstrumentName #'stencil =
       #(lambda (grob)

-- 
John Mandereau <address@hidden>

Attachment: signature.asc
Description: Ceci est une partie de message numériquement signée


reply via email to

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