From: Ricardo Wurmus <rekado@elephly.net>
To: Marc Chantreux <mc@unistra.fr>
Cc: julien@lepiller.eu, guile-user@gnu.org
Subject: Re: scheme with vim
Date: Wed, 05 Feb 2020 14:08:59 +0100 [thread overview]
Message-ID: <87ftfpqiz8.fsf@elephly.net> (raw)
In-Reply-To: <20200129155647.GA23079@prometheus.u-strasbg.fr>
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
next prev parent reply other threads:[~2020-02-05 13:08 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-29 15:56 scheme with vim Marc Chantreux
2020-01-29 18:34 ` Ricardo Wurmus
2020-01-29 20:29 ` zimoun
2020-01-29 20:53 ` Marc Chantreux
2020-01-29 21:04 ` zimoun
2020-02-05 12:58 ` Ricardo Wurmus
2020-02-05 14:26 ` Marc Chantreux
2020-02-05 13:08 ` Ricardo Wurmus [this message]
2020-02-05 13:26 ` zimoun
2020-02-05 13:52 ` Marc Chantreux
2020-02-05 15:39 ` zimoun
2020-02-05 16:56 ` Eli Zaretskii
2020-02-05 13:49 ` Marc Chantreux
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ftfpqiz8.fsf@elephly.net \
--to=rekado@elephly.net \
--cc=guile-user@gnu.org \
--cc=julien@lepiller.eu \
--cc=mc@unistra.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).