Re: Symbol table interrogation

Maciej Stachowiak (mstachow@mit.edu)
Wed, 11 Mar 1998 21:42:50 EST

gjb@cs.washington.edu writes:
> In guile, is there any primitive that permits returning a list of all
> interned symbols that match, say, a certain prefix or regular
> expression. (In case it's not obvious, I'm wondering about the
> potential for a richer, completion-enhanced interaction between Emacs
> and guile [in particular, scwm]).
>

I don't know what it is, but there must be something like this, since
guile has apropos. Try (apropos "close") for example. It will even
tell you what module the procedure is defined in. Delving into the
implementation may be enlightening. OTOH I think this may reveal only
the names of all bound variables rather than all interned symbols.

> Are there too many interned symbols to make this useful (w/o especially
> long prefixes)? Do module namespaces throw a monkey-wrench in this
> (I'm not sure how the symbol hash table(s) are organized).
>

They do, but it's a somewhat solved problem (see above).

- Maciej