I had a look into it.

First, please, **please!!** use plain text while providing code.
Following the link above I see *no* code at all, neither in Gilbertos initial 
mail to the list.

http://lilypond.1069038.n5.nabble.com/cross-staff-chords-do-not-automatically-hide-non-default-flags-td195328.html
worked, yes, but it's tedious to search which archive displays what...

On topic:
\crossStaff reverts the style property, but not a stencil set by the user. 
Those stencils, predefined in flag-styles.scm mostly don't read the 
style-property at all. As opposed to the stencil defined in C++, iiuc, and the 
default-flag defined in the same .scm-file

So what's the proper fix?
(1)
One could simply temporary set the stencil to #no-flag in crossStaff.
(2)
Or one could return an empty stencil for every scheme-defined stencil, if style 
is 'no-flag.
That would mean to change normal-flag, mensural-flag, flat-flag, 
old-straight-flag and  modern-straight-flag as defined in flag-styles.scm.
The there defined default-flag looks at this condition already.
Ok, a completely independent user defined flag-stencil will likely not look at 
the style-property, but we could make the procedures predefined in 
flag-styles.scm respecting it. A complete new code is in the responsibility of 
the programmer anyway.

So, I lean to (2), looks cleaner to me to give style 'no-flag more or less the 
same weight as stencil #no-flag.
But maybe I overlook something.

Opinions?


---

** [issues:#4983] \crossStaff only hides default-style flags**

**Status:** Accepted
**Created:** Fri Oct 14, 2016 05:42 PM UTC by Simon Albrecht
**Last Updated:** Fri Oct 14, 2016 05:42 PM UTC
**Owner:** nobody


As reported by Gilberto Agostinho, the default behaviour of `\crossStaff` to 
automatically hide flags doesn’t work for styles other than the default.
https://lists.gnu.org/archive/html/bug-lilypond/2016-10/msg00028.html


---

Sent from sourceforge.net because [email protected] is 
subscribed to https://sourceforge.net/p/testlilyissues/issues/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/testlilyissues/admin/issues/options.  Or, if this is 
a mailing list, you can unsubscribe from the mailing list.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Testlilyissues-auto mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/testlilyissues-auto

Reply via email to