[Top][All Lists]
[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: |
Reinhold Kainhofer |
Subject: |
Re: [PATCH]: Allow context modifications to be stored in a variable and inserted into \context or \with |
Date: |
Mon, 22 Mar 2010 23:42:31 +0100 |
User-agent: |
KMail/1.13.1 (Linux/2.6.31-20-generic; KDE/4.4.1; i686; ; ) |
Am Montag, 22. März 2010 19:50:47 schrieben Sie:
> On 22/03/10 14:56, Reinhold Kainhofer wrote:
> > Am Dienstag, 16. März 2010 18:04:37 schrieb Reinhold Kainhofer:
> > 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)?
No, that's not what I'm doint.
That's exactly what xxx=\context{..} does now. And by storing the whole
context, it will later on reset the whole context to the settings when the
assignment was done (in particular the \RemoveEmptyStaff context saves the
status of the \Staff context during lilypond's initialization and later on
simply applies all these settings, reverting later manual changes to \Staff...
My patch only stores a list of context modifications, without a particular
context attached. Think of it as storing just the contents of a \with block.
E.g.
xxx = \with {
\remove Clef_engraver
\consists Ambitus_engraver
}
> 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.
That reasoning was also my motivation to not reuse \with, but add a new
keyword (although \with also works in this situation and is treated in the
parser just like the \contextmodifications keyword).
Cheers,
Reinhold
--
------------------------------------------------------------------
Reinhold Kainhofer, address@hidden, http://reinhold.kainhofer.com/
* Financial & Actuarial Math., Vienna Univ. of Technology, Austria
* http://www.fam.tuwien.ac.at/, DVR: 0005886
* LilyPond, Music typesetting, http://www.lilypond.org
- Re: [PATCH]: Allow context modifications to be stored in a variable and inserted into \context or \with, (continued)
- Re: [PATCH]: Allow context modifications to be stored in a variable and inserted into \context or \with, Mats Bengtsson, 2010/03/12
- Re: [PATCH]: Allow context modifications to be stored in a variable and inserted into \context or \with, Reinhold Kainhofer, 2010/03/16
- Re: [PATCH]: Allow context modifications to be stored in a variable and inserted into \context or \with, Reinhold Kainhofer, 2010/03/22
- Re: [PATCH]: Allow context modifications to be stored in a variable and inserted into \context or \with, David Kastrup, 2010/03/22
- Re: [PATCH]: Allow context modifications to be stored in a variable and inserted into \context or \with, Reinhold Kainhofer, 2010/03/22
- Re: [PATCH]: Allow context modifications to be stored in a variable and inserted into \context or \with, David Kastrup, 2010/03/22
- Re: [PATCH]: Allow context modifications to be stored in a variable and inserted into \context or \with, Werner LEMBERG, 2010/03/22
- Message not available
- Re: [PATCH]: Allow context modifications to be stored in a variableand inserted into \context or \with, Reinhold Kainhofer, 2010/03/22
- Re: [PATCH]: Allow context modifications to be stored in a variable and inserted into \context or \with, Ian Hulin, 2010/03/22
- Re: [PATCH]: Allow context modifications to be stored in a variable and inserted into \context or \with, David Kastrup, 2010/03/22
- Re: [PATCH]: Allow context modifications to be stored in a variable and inserted into \context or \with,
Reinhold Kainhofer <=