bug-lilypond
[Top][All Lists]
Advanced

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

Re: barNumberCheck broken in LilyPond 2.19.22


From: David Kastrup
Subject: Re: barNumberCheck broken in LilyPond 2.19.22
Date: Sat, 04 Jul 2015 16:35:20 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

markdblackwell <address@hidden> writes:

> If a user passes a wrong bar number to \barNumberCheck, LilyPond 2.19.22
> produces a Scheme error:
>
>>lilypond tiny-example.ly
> GNU LilyPond 2.19.22
> Processing `tiny-example.ly'
> Parsing...
> Interpreting
> music...C:/progra/lilypond/current/usr/share/lilypond/current/ly/music-functions-init.ly:220:24:
> In procedure ly:input-warning in expression (ly:input-warning (*location*)
> "Barcheck failed got ~a expect ~a" ...):
> C:/progra/lilypond/current/usr/share/lilypond/current/ly/music-functions-init.ly:220:24:
> Wrong type argument in position 1 (expecting Input): #f
>
> Tiny-example.ly contains the following code:
>
> \version "2.19.18" % Please ignore this version number!
> notes = {
> c'2 d'
>   \barNumberCheck #3
> }
> \book {
>   \bookOutputName "barNumberCheck-tiny-example-test"
>   \score {
>     \notes
>     \layout { }
>   }
> }

Now I would have like to have complained about the non-minimality of the
example since the book appears entirely unnecessary.

But indeed without the book, only a warning (with a ludicrous error
location) occurs.  It is interesting that the behavior of normal score
and book differ in that respect.

-- 
David Kastrup



reply via email to

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