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 variableand i


From: Reinhold Kainhofer
Subject: Re: [PATCH]: Allow context modifications to be stored in a variableand inserted into \context or \with
Date: Sat, 3 Apr 2010 13:31:21 +0200
User-agent: KMail/1.13.2 (Linux/2.6.31-20-generic; KDE/4.4.2; i686; ; )

Am Montag, 22. März 2010 23:35:05 schrieb Reinhold Kainhofer:
> Am Montag, 22. März 2010 16:51:50 schrieben Sie:
> > Reinhold Kainhofer wrote Monday, March 22, 2010 3:45 PM
> > 
> > > The patch allows this as well (It treats \with and
> > > \contextmodifications
> > > exactly the same)... However, \with just doesn't tell you that
> > > this is only
> > > about Context modifications.
> > > 
> > > So, do you all think that we should only go with \with?
> > 
> > I would prefer that.  Are multiple \withs permitted?
> 
> Yes, multiple nested \with are allowed, and \with is now also allowed as
> the value of a variable and inside a \context definition. That's basically
> all that my patch does (internally, it also adds a C++ object for \with
> instead of simply treating it as a scheme list of modifications).

I have now pushed that patch. Although I'm not 100% happy with it, I have not 
added a new parser keyword (ie. NO \contextmodifications), only \with is 
allowed. While this might be clear for lilypond insiders, to a new user an 
assignment like
  something = \with { context-mods-here-only }
will not be clear.

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




reply via email to

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