Re: Setting context properties with \with

David Kastrup <[email protected]> Mon, 30 Dec 2024 10:59:37 +0100
Newsgroups gmane.comp.gnu.lilypond.bugs
Message-ID <[email protected]>
Werner LEMBERG <[email protected]> writes:

>>> Anyway, both situations don't work; I would call it a bug.
>>
>> I would rather call it a doc issue.  It doesn't make sense to me
>> that \with { x = y } would set a value that can never be unset.
>
> I think I've misunderstood how `\with` works.  I have always thought
> that it sets default values for a specific instance of a context
> before this instance gets created.  Apparently, I'm wrong – it doesn't
> set default values, it just sets values.

I don't know what you consider "default values", but not even context
definitions set anything that cannot be undone.  That's the reason
defaults are established in the Global context rather than the Score
context where they could be overriden/unset without fallback.

-- 
David Kastrup