From: David Kastrup Date: Mon, 5 Nov 2012 22:13:07 +0000 (+0100) Subject: Issue 2949: Allow (closed) scheme function calls as text scripts. X-Git-Tag: release/2.17.7-1~15 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=a30c13f4658f03cb30820a27b42ddb4aea941380;p=lilypond.git Issue 2949: Allow (closed) scheme function calls as text scripts. One motivation of recent grammar changes was to make scheme variables identical to markup variables. The obvious parallel idea of letting scheme function calls be available for calculating markups has not received similar attention. The purpose of this patch is to allow for using scheme function calls producing markup within text scripts. --- diff --git a/lily/parser.yy b/lily/parser.yy index eb8f8cbcc9..4eb488a37f 100644 --- a/lily/parser.yy +++ b/lily/parser.yy @@ -2774,7 +2774,7 @@ gen_text_def: make_simple_markup ($1)); $$ = t->unprotect (); } - | embedded_scm_bare + | embedded_scm_closed { Music *m = unsmob_music ($1); if (m && m->is_mus_type ("post-event"))