perpeduumimmob...@gmail.com writes: > Two follow-up questions: > 1.) Is there a way to list all Lily scheme functions and/or all their > docstrings? If you know what function or variable you are looking for, > the docstrings are obviously great. But if I look for something which > matches your favourite buzzword, I currently grep in some way through > the entire scheme code.
(module-for-each (lambda (s v) (let ((r (variable-ref v))) (if (and (procedure? r) (procedure-documentation r)) (format #t "~a: ~a\n\n" s (procedure-documentation r))))) (resolve-module '(lily))) But actually git grep something scm *is* pretty great. > 2.) If I run `guile`, `(help)` gives me all sorts of info on how to use, > well, the help. But if I run `lilypond scheme-sandbox`, `(help)` will > only show me a complaint "ERROR: Unbound variable: help". Do I have to > use a special trick to access these docs in a guile REPL? (use-modules (ice-9 session)) -- David Kastrup _______________________________________________ lilypond-devel mailing list lilypond-devel@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-devel