From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Marc Chantreux Newsgroups: gmane.lisp.guile.user Subject: Re: scheme with vim Date: Wed, 5 Feb 2020 14:49:41 +0100 Message-ID: <20200205134941.GA25455@prometheus.u-strasbg.fr> References: <20200129155647.GA23079@prometheus.u-strasbg.fr> <87ftfpqiz8.fsf@elephly.net> 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="52995"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/1.10.1 (2018-07-13) Cc: julien@lepiller.eu, guile-user@gnu.org To: Ricardo Wurmus Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Wed Feb 05 14:50:13 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 1izL4H-000Dgw-7Y for guile-user@m.gmane-mx.org; Wed, 05 Feb 2020 14:50:13 +0100 Original-Received: from localhost ([::1]:47352 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1izL4G-0003Wd-8M for guile-user@m.gmane-mx.org; Wed, 05 Feb 2020 08:50:12 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50634) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1izL43-0003WB-Ql for guile-user@gnu.org; Wed, 05 Feb 2020 08:50:00 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1izL42-0007gR-0u for guile-user@gnu.org; Wed, 05 Feb 2020 08:49:58 -0500 Original-Received: from smtpout01-ext1.partage.renater.fr ([194.254.240.32]:56240) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1izL41-0006uq-QG for guile-user@gnu.org; Wed, 05 Feb 2020 08:49:57 -0500 Original-Received: from zmtaauth01.partage.renater.fr (zmtaauth01.partage.renater.fr [194.254.240.25]) by smtpout10.partage.renater.fr (Postfix) with ESMTP id A44C061542; Wed, 5 Feb 2020 14:49:42 +0100 (CET) Original-Received: from zmtaauth01.partage.renater.fr (localhost [127.0.0.1]) by zmtaauth01.partage.renater.fr (Postfix) with ESMTPS id 9AB641400FD; Wed, 5 Feb 2020 14:49:42 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zmtaauth01.partage.renater.fr (Postfix) with ESMTP id 8BB16140127; Wed, 5 Feb 2020 14:49:42 +0100 (CET) X-Virus-Scanned: amavisd-new at zmtaauth01.partage.renater.fr Original-Received: from zmtaauth01.partage.renater.fr ([127.0.0.1]) by localhost (zmtaauth01.partage.renater.fr [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id B6c_5PsHK0z7; Wed, 5 Feb 2020 14:49:42 +0100 (CET) Original-Received: from 91.168.156.224 (unknown [194.254.241.250]) by zmtaauth01.partage.renater.fr (Postfix) with ESMTPA id 65C7A1400FD; Wed, 5 Feb 2020 14:49:42 +0100 (CET) Content-Disposition: inline In-Reply-To: <87ftfpqiz8.fsf@elephly.net> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 194.254.240.32 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:16130 Archived-At: hello Ricardo, > I=E2=80=99m still not sure I understand exactly what the result of this= should > be (as I=E2=80=99m not familiar with ctags), but you can get a list of = loaded > modules and the symbols they export. i deeply regret the way i turned my message. please forget everything you read and start with a fresh base: i need the list of the symbols that are available for completion. i guess some are built-in (map, apply, define, use-module ...) and others come from modules. my question is: how to collect this list. > This expression, for example, will print all symbols that are exported > by the (texinfo) module with GNU Guile 2.2.4, i got ice-9/boot-9.scm:1978:2: In procedure struct_vtable: Wrong type argument in position 1 (expect= ing struct): #f but reading the code, i guess you just solved a part of the problem: get the symbols available in 1 module. so now i need all the default symbols. maybe we should just copy them from a documentation instead of introspect the guile interpreter? > You can get a hash table of all loaded modules with > (module-submodules (resolve-module '() #f #f #:ensure #f)) which means i need to run the current code. this is tricky... probably i should write something that: * parses the current source * try to find the 'use-modules' s-expr * run it * run your code not my current scheme level but it should be a good exercise. i guess i need a reader. regards marc