]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/hara-kiri-group-spanner.cc
* Documentation/user/changing-defaults.itely (Changing defaults):
[lilypond.git] / lily / hara-kiri-group-spanner.cc
index 8fdcc19bc86c2947a5b1d227be4196c34d5f857e..dabcf7c7e186d054dbb6d5fb76496acfc04d6118 100644 (file)
@@ -3,7 +3,7 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c)  1998--2003 Jan Nieuwenhuizen <janneke@gnu.org>
+  (c) 1998--2004 Jan Nieuwenhuizen <janneke@gnu.org>
   Han-Wen Nienhuys <hanwen@cs.uu.nl>
 */
 
@@ -31,11 +31,11 @@ void
 Hara_kiri_group_spanner::consider_suicide (Grob*me)
 {
   Spanner*sp = dynamic_cast<Spanner*> (me);
-  SCM worth = me->get_grob_property ("items-worth-living");
+  SCM worth = me->get_property ("items-worth-living");
   if (gh_pair_p (worth))
     return ;
 
-  if (!to_boolean (me->get_grob_property ("remove-first"))
+  if (!to_boolean (me->get_property ("remove-first"))
       && broken_spanner_index (sp) == 0)
     {
       return ;
@@ -101,9 +101,9 @@ Hara_kiri_group_spanner::add_interesting_item (Grob* me,Grob* n)
 
 
 ADD_INTERFACE (Hara_kiri_group_spanner,"hara-kiri-group-interface",
-  "  As Vertical_group_spanner, but keep track of interesting items.  If       \
-we don't contain any interesting items after linebreaking, then                        \
-gracefully commit suicide.  Objective: don't disgrace Lily by                  \
-typesetting empty lines in orchestral scores.",                                        \
-  "items-worth-living remove-first");
+              "A group spanner that  keeps track of interesting items.  If it "
+              "doesn't contain any after linebreaking, then it "
+              "will remove itself and all its children."
+              ,
+              "items-worth-living remove-first");