Re: \with mods targeting parents

David Kastrup <[email protected]>
Newsgroups gmane.comp.gnu.lilypond.devel
Organization Organization?!?
Message-ID <[email protected]>
David Kastrup <[email protected]> writes:

> Carl Sorensen <[email protected]> writes:
>
>> To me as an experienced user who has not followed the evolution of the
>> usage of \with blocks, it seems a bit surprising that after explicitly
>> requesting the Staff.instrumentName property to be changed, the
>> Voice.instrumentName property is what is actually changed.
>
> There is no difference between "explicitly requested" and "implicitly
> requested" in the form of predefined commands to LilyPond.
>
> The current behavior was a design decision along with the implementation
> of allowing property-setting music in \with-blocks to be converted.
>
> We actually went through all this once already including actual code,
> and the results were unhelpful.
>
> Please check
>
> <https://gitlab.com/lilypond/lilypond/-/issues/2982>

It also turns out that if you really want the settings constrained to
those matching a particular context type, the optional argument of
\settingsFrom will allow you to filter in that manner.

-- 
David Kastrup
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.