bug-lilypond
[Top][All Lists]
Advanced

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

Re: Make defining new contexts simpler with better \alias functionality


From: David Kastrup
Subject: Re: Make defining new contexts simpler with better \alias functionality
Date: Sat, 07 Mar 2015 22:58:42 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Paul Morris <address@hidden> writes:

> David Kastrup wrote
>> An extra command seems like bikeshedding when you can just write
>> 
>> \accept-like Voice myVoice \layout { }
>> 
>> instead.
>
> Good point!  Lets just go with that.

Actually, that kind of usage only works outside of \score.

If you write
\score {
  ...
  \layout { \context { \Voice \name myVoice } }
  \accept-like Voice myVoice \layout { }
}

Then you get _two_ typeset scores.  One without the \accept properties
in place, and one without the context definition.

But your proposal would not really fare better: an \accept-like-layout
command in that position would not really have a way of getting at the
previous score-specific layout definition.

-- 
David Kastrup



reply via email to

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