bug-lilypond
[Top][All Lists]
Advanced

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

Re: RemoveEmptyStaffContext erases previous setting


From: Phil Holmes
Subject: Re: RemoveEmptyStaffContext erases previous setting
Date: Sun, 20 Jun 2010 15:17:34 +0100

"Reinhold Kainhofer" <address@hidden> wrote in message news:address@hidden
On Friday 05 February 2010 18:05:52 you wrote:
On Fri, Feb 5, 2010 at 3:14 PM, Reinhold Kainhofer

<address@hidden> wrote:
> I found out the hard way that apparently adding > \RemoveEmptyStaffContext
> globally to a score will erase some previous settings.

Yes.  \removeEmptyStaffContext copies the new context over the
previous one.  Or something like this.

Yes, it works as follows: The \removeEmptyStaffContext variable stores the
newly created Staff-derived context in the init file (i.e. when
removeEmptyStaffContext is defined, so it contains only the default settings for Staff). All subsequent changes to the Staff context are of couse not applied to
the removeEMptyStaffContext variable.
When you insert RESC into your score, however, the current Staff context is replaced by the value of the RESC, which does not contain any of your changes.

So, while it is clear how things work when you know the internals, I definitely regard this a bad bug, as something innocent as automatically removing empty staves has lethal side-effects (e.g. on figured bass and all different unrelated
areas!).

So, from a developer perspective, the current behavior might be expected, but it is definitely not what any sane USER would expect. And for me this is the
definition of a bug.

I think RESC should be somehow recoded to apply only the relevant changes when it is actually called, but not store the whole Staff context at definition time.

Cheers,
Reinhold

I've had a long look at this and can confirm that there are some slightly odd things going on, and variations between 2.12 and 2.13. Please see the attached image and let me have your thoughts.


--
Phil Holmes
Bug Squad

Attachment: RemoveStaff.png
Description: PNG image


reply via email to

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