From: Rune Zedeler Date: Sun, 4 Aug 2002 21:29:40 +0000 (+0000) Subject: 2002-08-04 Rune Zedeler X-Git-Tag: release/1.5.72~37 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=4830ea41ba728534312a0544157ce22bbcf30eb0;p=lilypond.git 2002-08-04 Rune Zedeler * Documentation/user/refman.itely * Documentation/user/internals.itely: Documented "Current" property. --- diff --git a/ChangeLog b/ChangeLog index f8974f3c99..e19788c326 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2002-08-04 Rune Zedeler + + * Documentation/user/refman.itely + * Documentation/user/internals.itely: Documented "Current" property. + 2002-08-04 Han-Wen * lily/lily-guile.cc: change gh_str02scm to scm_makfrom0str. diff --git a/Documentation/user/internals.itely b/Documentation/user/internals.itely index 44c5a8624a..a1e463d8e5 100644 --- a/Documentation/user/internals.itely +++ b/Documentation/user/internals.itely @@ -285,6 +285,30 @@ contained contexts. This means that a property valid for the @internalsref{Voice} context can be set in the @internalsref{Score} context (for example) and thus take effect in all @internalsref{Voice} contexts. +@cindex @code{Current} +If you don't wish to specify the name of the context in the +@code{\property}-expression +itself, you can refer to the abstract context name, +@code{Current}. The @code{Current} context is the latest +used context. This will typically mean the @internalsref{Thread} +context, but you can force another context with the +@code{\property}-command. Hence the expressions + +@example + \property @var{contextname}.@var{propname} = @var{value} +@end example + +and + +@example + \context @var{contextname} + \property Current.@var{propname} = @var{value} +@end example + +do the same thing. +The main use for this is in macros - allowing the specification of a +property-setting without restriction to a specific context. + Properties can be unset using the following expression: @example \property @var{contextname}.@var{propname} \unset diff --git a/Documentation/user/refman.itely b/Documentation/user/refman.itely index 9b9eeb11e2..d38e284790 100644 --- a/Documentation/user/refman.itely +++ b/Documentation/user/refman.itely @@ -579,7 +579,7 @@ want to use relative within transposed music, you must place an additional @code{\relative} inside the @code{\transpose}. -@c . {Bar check} +@c . {Bar check} @node Bar check @subsection Bar check @cindex Bar check @@ -1332,7 +1332,8 @@ quite hairy, so non-experts should stick to the macros defined in @file{ly/property-init.ly}. @cindex @file{property-init.ly} -The normal way of using the macros is to enter the macro name right after the +The macros operate on the ``Current'' context (see @ref{Context properties}). This +means that the macros shuold normally be invoked right after the creation of the context in which the accidental typesetting described by the macro is to take effect. I.e. if you want to use piano-accidentals in a pianostaff then you issue diff --git a/input/SondagMorgen/SondagMorgenIntro.ly b/input/SondagMorgen/SondagMorgenIntro.ly index aa1b638292..16c5bfa164 100644 --- a/input/SondagMorgen/SondagMorgenIntro.ly +++ b/input/SondagMorgen/SondagMorgenIntro.ly @@ -5,7 +5,7 @@ marks = \lyrics { } ned = \downbow -op = \upbow +op = \upbow #(define meter '(rows (music "noteheads-2" ((kern . -0.1) "flags-stem")) " = 128"))