guile-user
[Top][All Lists]
Advanced

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

Re: scheme with vim


From: Ricardo Wurmus
Subject: Re: scheme with vim
Date: Wed, 05 Feb 2020 14:08:59 +0100
User-agent: mu4e 1.2.0; emacs 26.3

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

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