From mboxrd@z Thu Jan 1 00:00:00 1970 From: Keisuke Nishida To: guile-emacs@sourceware.cygnus.com Subject: Re: scheme-find-definition Date: Tue, 09 May 2000 23:46:00 -0000 Message-id: References: <87aei0yt1a.fsf@PC486.Niemitalo.local> <87d7mvmwp0.fsf@PC486.Niemitalo.local> X-SW-Source: 2000-q2/msg00047.html Kalle Olavi Niemitalo 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.