[plt-scheme] Slime-like documentation

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Thu Jan 10 08:49:35 EST 2008

At Thu, 10 Jan 2008 11:44:10 +0000, Filipe Cabecinhas wrote:
> I wanted to begin hacking DrScheme/MzScheme and wanted to know if it's  
> possible to know the name and parameters of every defined function  
> (and special form/macro) in the environment so I could make Dr. Scheme  
> do something like slime in emacs:
> 
> When you write "(nth ", emacs shows "(nth N LIST)" in the mini-buffer.
> 
> Is it possible to get that information? 

Assuming that you want to extract the information from documentation:

In v37x, this information is in the plt/doc/*/keywords files.

In v3.99.x, this information isn't yet easily accessible, but it will
be available via the `scribble/xref' library. I can add that
information this afternoon.

> Where should I start looking  
> in the Dr Scheme code-base to add that to the interface?

The general answer is to use DrScheme's tool plug-in interface. In this
case, it may make sense to implement it alongside word completion,
somehow.

Matthew



Posted on the users mailing list.