This is the mail archive of the
guile-emacs@sourceware.cygnus.com
mailing list for the Guile project.
Re: scheme-find-definition
Kalle Olavi Niemitalo <tosi@ees2.oulu.fi> writes:
> I think it would be better to make `define' save the source
> location in the symbol. Or if all variables are defined in
> modules, scheme-find-definition could just 1. find from which
> module the variable was imported, 2. locate the module's source
> in %load-path, 3. load it in a buffer and 4. find the variable's
> definition with a textual search.
I think combining the source property and the textual search you
write may be enough. Only when no source property exists or it is
not correct, we can search the module. If a module stores its file
location as a property, we can use it.