From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Ricardo Wurmus Newsgroups: gmane.lisp.guile.user Subject: Re: scheme with vim Date: Wed, 05 Feb 2020 14:08:59 +0100 Message-ID: <87ftfpqiz8.fsf@elephly.net> References: <20200129155647.GA23079@prometheus.u-strasbg.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="114214"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.2.0; emacs 26.3 Cc: julien@lepiller.eu, guile-user@gnu.org To: Marc Chantreux Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Wed Feb 05 14:09:55 2020 Return-path: Envelope-to: guile-user@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1izKRG-000Tcu-CR for guile-user@m.gmane-mx.org; Wed, 05 Feb 2020 14:09:54 +0100 Original-Received: from localhost ([::1]:46720 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1izKRF-0003jv-F7 for guile-user@m.gmane-mx.org; Wed, 05 Feb 2020 08:09:53 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54648) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1izKQZ-0003ij-5f for guile-user@gnu.org; Wed, 05 Feb 2020 08:09:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1izKQX-0006Po-4P for guile-user@gnu.org; Wed, 05 Feb 2020 08:09:11 -0500 Original-Received: from sender4-of-o51.zoho.com ([136.143.188.51]:21103) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1izKQW-00066i-LI for guile-user@gnu.org; Wed, 05 Feb 2020 08:09:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1580908145; s=zoho; d=elephly.net; i=rekado@elephly.net; h=References:From:To:Cc:Subject:In-reply-to:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=wwteAt4NVW2v7QAlI5g4g+32ifOTJ87NsTCgm3OsB90=; b=bK48ysuGpqmLKD5QR4ASnD5M4yzbI206+8Tp5HssbejKz1TzsdyGLA4ssAfXzS5R iq70I559XlBhoeS99G9ZLJ/f7KRcqQekvxF/GA8RvoOKB1w4YlU83+On7MU5jjSXsFD sxIz8jRu0X7i2EXzSsMo6ady3yXHjf++V9wWIB5I= Original-Received: from localhost (p54AD4C3D.dip0.t-ipconnect.de [84.173.76.61]) by mx.zohomail.com with SMTPS id 1580908142620919.1332234629706; Wed, 5 Feb 2020 05:09:02 -0800 (PST) In-reply-to: <20200129155647.GA23079@prometheus.u-strasbg.fr> X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC X-ZohoMailClient: External X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 136.143.188.51 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.io gmane.lisp.guile.user:16128 Archived-At: 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=E2=80=99m still not sure I understand exactly what the result of this sho= uld be (as I=E2=80=99m not familiar with ctags), but you can get a list of load= ed 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. --=20 Ricardo