lilypond-user
[Top][All Lists]
Advanced

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

Re: ly:expect-warning (was Re: Slur from one voice to another emitswarni


From: David Kastrup
Subject: Re: ly:expect-warning (was Re: Slur from one voice to another emitswarning)
Date: Sat, 10 Jun 2017 10:24:50 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

"Trevor Daniels" <address@hidden> writes:

> David, you wrote  Monday, June 05, 2017 5:34 PM
>
>
>> Richard Shann <address@hidden> writes:
>> 
>>> I found by trial-and-error that if I remove any of the three occurrences
>>> of the ly:expect-warning the warning returns.
>>>
>>> Where should it be called?
>> 
>> At the top, once for every expected warning.  It doesn't make sense
>> placing it in music expressions: its effect will be immediate anyway and
>> it does not become part of the music.
>
> Why does it not make sense to place it in a music expression?  I find
> keeping the suppression adjacent to the place the warning is triggered
> helps to remind me why it is there.

Music expressions can be invoked any number of times (including zero)
and in arbitrary order.  Putting ly:expect-warning inside of a music
expression suggests that trigger and suppression of the warning are
linked.  However, the trigger of the warning occurs when the music
expression is actually interpreted (and even then, it might be triggered
by different phases of interpretation) while the suppression is
registered at the moment ly:expect-warning is read from the input file.

-- 
David Kastrup



reply via email to

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