Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1343)

Issue 20500043: Issue 3641: Keep only one Axis_group_engraver active (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 6 months ago by dak
Modified:
8 years, 9 months ago
Reviewers:
Keith
CC:
lilypond-devel_gnu.org
Visibility:
Public.

Description

Issue 3641: Keep only one Axis_group_engraver active The internal context property axisEngraver is used for tracking the currently active Axis_group_engraver. This supercedes the solution attempted in issue 2990. Also: Revert "Issue 2990: \RemoveEmptyStaves in StaffGroup context crashes" This reverts commit d40362adfc1c3b24f466b7570e58f92885751019.

Patch Set 1 #

Patch Set 2 : Simplify tests, make robust against collision with Vertical_align_engraver #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -17 lines) Patch
M lily/axis-group-engraver.cc View 1 5 chunks +18 lines, -15 lines 4 comments Download
M lily/vertical-align-engraver.cc View 1 4 chunks +14 lines, -2 lines 2 comments Download
M scm/define-context-properties.scm View 1 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 9
dak
Simplify tests, make robust against collision with Vertical_align_engraver
10 years, 6 months ago (2013-10-31 23:36:16 UTC) #1
Keith
Looks good. https://codereview.appspot.com/20500043/diff/20001/lily/axis-group-engraver.cc File lily/axis-group-engraver.cc (right): https://codereview.appspot.com/20500043/diff/20001/lily/axis-group-engraver.cc#newcode135 lily/axis-group-engraver.cc:135: the context. */ Probably this comment no ...
10 years, 6 months ago (2013-11-01 07:30:47 UTC) #2
ckenneth721
https://codereview.appspot.com/22120043/
10 years, 5 months ago (2013-11-10 13:08:11 UTC) #3
ckenneth721
https://codereview.appspot.com/22120043/
10 years, 5 months ago (2013-11-10 13:09:16 UTC) #4
dak
Man, "unpublished drafts" _again_. I really am too stupid for that Rietveld user interface. At ...
10 years, 5 months ago (2013-11-10 14:10:38 UTC) #5
dak
On 2013/11/10 13:09:16, ckenneth721 wrote: > https://codereview.appspot.com/22120043/ This looks rather like your cat got your ...
10 years, 5 months ago (2013-11-10 14:18:05 UTC) #6
Keith
https://codereview.appspot.com/20500043/diff/20001/lily/vertical-align-engraver.cc File lily/vertical-align-engraver.cc (right): https://codereview.appspot.com/20500043/diff/20001/lily/vertical-align-engraver.cc#newcode99 lily/vertical-align-engraver.cc:99: The contexts with a Vertical_align_engraver, StaffGroup and such, would ...
10 years, 4 months ago (2013-12-16 18:05:16 UTC) #7
dak
https://codereview.appspot.com/20500043/diff/20001/lily/vertical-align-engraver.cc File lily/vertical-align-engraver.cc (right): https://codereview.appspot.com/20500043/diff/20001/lily/vertical-align-engraver.cc#newcode99 lily/vertical-align-engraver.cc:99: On 2013/12/16 18:05:17, Keith wrote: > The contexts with ...
10 years, 4 months ago (2013-12-16 18:16:54 UTC) #8
Keith
10 years, 4 months ago (2013-12-16 21:58:08 UTC) #9
On 2013/12/16 18:16:54, dak wrote:
>
https://codereview.appspot.com/20500043/diff/20001/lily/vertical-align-engrav...
> lily/vertical-align-engraver.cc:99: 
> On 2013/12/16 18:05:17, Keith wrote:
> > 
> > This removal of the Vertical_align_engraver looks like a convenience
feature,
> > just for cases where you add Axis_group_engraver to an unusual context.
> 
> I don't actually understand that comment, nor do I understand whether
> it is necessary to take any action on it.
> 
> The check and warning were here because this case was another one that
> could cause infinite recursion akin to the one the first patch cured.
> I think the use case of not messing with engravers at all and, say,
> accepting a NoteNames context into a Staff (apparently typical for
> Jazz sheets) would be easy and intuitive.

You might still be talking about the check against creating VerticalAxisGroups
inside other VerticalAxisGroups.  The check here for is Vertical_align_engravers
and these engravers do not seem to create anything dangerous.

So I do understand the reason for the additional check you added here.  It does
not do what you momentarily thought it should over on -user.  It looks fine to
me, though, as it should not cause any problem, so I am not suggesting any
action.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b