lilypond-devel
[Top][All Lists]
Advanced

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

Re: [PATCH]: Allow context modifications to be stored in a variable and


From: Ian Hulin
Subject: Re: [PATCH]: Allow context modifications to be stored in a variable and inserted into \context or \with
Date: Mon, 22 Mar 2010 18:50:47 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.8) Gecko/20100227 Lightning/1.0b1 Thunderbird/3.0.3

On 22/03/10 14:56, Reinhold Kainhofer wrote:
Am Dienstag, 16. März 2010 18:04:37 schrieb Reinhold Kainhofer:
Am Freitag, 12. März 2010 14:41:20 schrieb Reinhold Kainhofer:
Our problems with \RemoveEmptyStaffContext resetting previous context
modifications highlights one problem we have: So far, it was not possible
to store a bunch of context modifications into a variable and apply them
later on.

An updated patch is now available at
     http://codereview.appspot.com/475041

Before I finally push this (I assume the silence means approval ;-) ), I just
want to bring up the issue how to name the new command to store context
modifications.

Initially I used \contextModifications {...}, but as Neil points out, all
parser keywords are supposed to be lowercase, so now we have the ugly-looking
\contextmodifications {...}...

What do you think of this name, it is okay or too long/unclear?

Both.  How above xxx = \savecontext {...} (which is what your doing)?

I've seen later replies and I don't like "\with" in this usage (I nearly wrote "context").

By and large \ commands tend to be verbs or nouns, and I don't know how to "with" anything, and I've never ever set eyes on a "with".
<somecontext> \with {blah...}
        {....}
is OK because the \with clause contains property values parameterizing the main context block.

Cheers,
Ian





reply via email to

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