Hi, while working on a patch to improve markup->string from markup.scm I noticed, that (pretty-print (list? (ly:module->alist (resolve-module '(lily))))) inserted at toplevel in markup.scm returns several times: programming error: unbound variable in module continuing, cross fingers While doing same in a ly-files return no error.
Adding some debugging code in markup.scm: (pretty-print (filter-map identity (module-map (lambda (e v) (if (variable-bound? v) #f e)) (resolve-module '(lily))))) The following list is returned: (make-safe-lilypond-module make-span-event midi-program percussion? remove-stencil-warnings scale-layout score-lines-markup-list score-markup span-bar::notify-grobs-of-my-existence stencil-whiteout tremolo::get-music-list volta-bracket::calc-hook-visibility write-performances-midis invalidate-alterations all-music-font-encodings alterations-in-key backend-testing base-length layout-extract-page-properties beam-exceptions lilypond-main beat-structure line-markup calc-repeat-slash-count lookup-font default-time-signature-settings) I guess at the time it is called not all bindings are done in the lily-module as opposed to caling it far later in a ly-file. Is this correct? I can cope with it, just wanted to be sure. Thanks, Harm _______________________________________________ lilypond-devel mailing list lilypond-devel@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-devel