>>>> "Ray" == Raymond Toy
<toy(a)rtp.ericsson.se> writes:
Ray> The question is how should ilisp go looking for where it was loaded
Ray> from. It currently tries to find itself by looking at all the entries
Ray> in load-path. Should it look in the package path first, and then fall
Ray> back to load-path?
(defun describe-symbol-find-file (symbol)
(loop for (file . load-data) in load-history
do (when (memq symbol load-data)
(return file))))
If some lisp files require each other, and they are always installed
in the same directory, it makes a certain amount of sense for the
first loaded ilisp file to "find itself" using the above function. I
don't think it's common for a lisp package to do this - it generally
relies on load-path being used consistently.
P.S. Shouldn't load-history be a hash table?
Martin