X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=scm%2Fdisplay-lily.scm;h=6a53f1eded020df0ef754212fe4ac49fcdee5add;hb=1478b35691bfdb6e805d7225ee44fbec0622e8fc;hp=668678146f0f2b3dfbb69792652430bfc126649a;hpb=7f48cb638958a728209577caa41bbaca8a2e4ef2;p=lilypond.git diff --git a/scm/display-lily.scm b/scm/display-lily.scm index 668678146f..6a53f1eded 100644 --- a/scm/display-lily.scm +++ b/scm/display-lily.scm @@ -41,7 +41,7 @@ `display-methods' property of the music type entry found in the `music-name-to-property-table' hash table. Print methods previously defined for that music type are lost. -Syntax: (define-display-method MusicType (expression parser) +Syntax: (define-display-method MusicType (expression) ...body...))" `(let ((type-props (hashq-ref music-name-to-property-table ',music-type '())) @@ -107,7 +107,7 @@ display method will be called." music-type '()) 'display-methods)) (result-string (and procs (any (lambda (proc) - (proc expr parser)) + (proc expr)) procs)))) (if result-string (format #f "~a~a~a" @@ -248,7 +248,7 @@ Generate binding forms by looking for ?var symbol in pattern." (cdr prop-elements)))) elements-list)))) -(define-macro (with-music-match music-expr+pattern . body) +(defmacro-public with-music-match (music-expr+pattern . body) "If `music-expr' matches `pattern', call `body'. `pattern' should look like: '(music property value