Context *
Context::find_existing_context (SCM n, String id)
{
- if ((is_alias (n) && (id_string_ == id || id.is_empty ()))
- || n == ly_symbol2scm ("Current"))
+ if ((is_alias (n) && (id_string_ == id || id.is_empty ())))
return this;
Context* r = 0;
return current;
}
+ /*
+ Don't go up to Global_context, because global goes down to
+ Score_context
+ */
Context *ret = 0;
- if (daddy_context_)
+ if (daddy_context_ && !dynamic_cast<Global_context*> (daddy_context_))
ret = daddy_context_->find_create_context (n, id, operations);
else
{