lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Add an expert font tree interface (issue 108700043 by address@hidden


From: David Kastrup
Subject: Re: Add an expert font tree interface (issue 108700043 by address@hidden)
Date: Thu, 17 Jul 2014 10:23:19 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux)

address@hidden 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]