Hi Marc,

> i don't know what is the good way to get the list of built-in
> commands of guile so i ended up with
>
>     aptitude search '~i ~n guile-2' -F%p |
>         xargs -n1 dpkg -L |
>         perl -lnE 'print if /[.]scm$/ && -f' |
>     ctags -L - -f ~/.vim/ctags/guile
>
> any better way ?

I’m still not sure I understand exactly what the result of this should
be (as I’m not familiar with ctags), but you can get a list of loaded
modules and the symbols they export.

This expression, for example, will print all symbols that are exported
by the (texinfo) module:

(module-for-each (lambda (symbol variable) (display symbol)(newline))
                 (resolve-module '(texinfo) #f #f #:ensure #f))

You can get a hash table of all loaded modules with:

    (module-submodules (resolve-module '() #f #f #:ensure #f))

etc.

-- 
Ricardo

Reply via email to