]> git.donarmstrong.com Git - lilypond.git/commitdiff
(create_unique_context): new method. Move
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Fri, 26 Nov 2004 13:36:37 +0000 (13:36 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Fri, 26 Nov 2004 13:36:37 +0000 (13:36 +0000)
creation of unique (\new) contexts into interpreting phase. This
makes

lily/context.cc

index fc9e780ae33d408c14f53a8c3160a059940de41c..5d0b1ffb3fe882a4bf878bfb3d0bf31a22d80006 100644 (file)
@@ -103,6 +103,9 @@ Context::Context (Object_key const* key)
   scm_gc_unprotect_object (key_->self_scm ());
 }
 
+/*
+  TODO:  this shares code with find_create_context().
+ */
 Context*
 Context::create_unique_context (SCM n, SCM operations)
 {
@@ -129,7 +132,7 @@ Context::create_unique_context (SCM n, SCM operations)
          SCM ops = (i == path.size () -1) ? operations : SCM_EOL;
 
          current = current->create_context (path[i],
-                                            "",
+                                            "\\new",
                                             ops); 
        }