]> git.donarmstrong.com Git - lilypond.git/commitdiff
2002-08-04 Rune Zedeler <rune@zedeler.dk>
authorRune Zedeler <rune@lilypond.org>
Sun, 4 Aug 2002 21:29:40 +0000 (21:29 +0000)
committerRune Zedeler <rune@lilypond.org>
Sun, 4 Aug 2002 21:29:40 +0000 (21:29 +0000)
* Documentation/user/refman.itely
* Documentation/user/internals.itely: Documented "Current" property.

ChangeLog
Documentation/user/internals.itely
Documentation/user/refman.itely
input/SondagMorgen/SondagMorgenIntro.ly

index f8974f3c99725c235f8c653070ed00bfd554e436..e19788c32616123388b950b229842b00f225b801 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2002-08-04  Rune Zedeler <rune@zedeler.dk>
+
+       * Documentation/user/refman.itely
+       * Documentation/user/internals.itely: Documented "Current" property.
+       
 2002-08-04  Han-Wen  <hanwen@cs.uu.nl>
 
        * lily/lily-guile.cc: change gh_str02scm to scm_makfrom0str.
index 44c5a8624a8e0bd2100e4e3b8deb50946bf8c07e..a1e463d8e57bc93973b6fbfe9aef40118eb0ec7c 100644 (file)
@@ -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
index 9b9eeb11e2b717e0cbf48bf8e0944e4c98441d42..d38e284790becda92c8e7724d9bb69f6310c6d14 100644 (file)
@@ -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
index aa1b638292a9bebfaa9a5a33c3476b124bbcd6dd..16c5bfa1645c97b3d0e61bcdd2a0b46bcb0c5735 100644 (file)
@@ -5,7 +5,7 @@ marks = \lyrics {
 }
 
 ned = \downbow
-op = \upbow
+op = \upbow 
 
 #(define meter '(rows (music "noteheads-2" ((kern . -0.1) "flags-stem")) " = 128"))