![](https://secure.gravatar.com/avatar/fc3d357fdde7eced63dfcf05f86ce4ac.jpg?s=120&d=mm&r=g)
Hello, starting from a file currently being processed (as per either *compile-file-truename* or *load-truename*), how can I retrieve the ASDF system currently being processed, and ultimately, the corresponding source file component (when *load-truename* returns a fasl) ? Thanks. -- My new Jazz CD entitled "Roots and Leaves" is out! Check it out: http://didierverna.com/records/roots-and-leaves.php Lisp, Jazz, Aïkido: http://www.didierverna.info
![](https://secure.gravatar.com/avatar/0345f6261d6ced21145afdec166fd114.jpg?s=120&d=mm&r=g)
Not possible without defining extra methods *before* you start building the system, or an indexing pass afterwards. See how I do it in swank-asdf (which the slime maintainers unhappily disabled by default). On Tue, Nov 24, 2015, 05:46 Didier Verna <didier@lrde.epita.fr> wrote:
Hello,
starting from a file currently being processed (as per either *compile-file-truename* or *load-truename*), how can I retrieve the ASDF system currently being processed, and ultimately, the corresponding source file component (when *load-truename* returns a fasl) ?
Thanks.
-- My new Jazz CD entitled "Roots and Leaves" is out! Check it out: http://didierverna.com/records/roots-and-leaves.php
Lisp, Jazz, Aïkido: http://www.didierverna.info
![](https://secure.gravatar.com/avatar/ddc06239b4e27ec291e554d743acf770.jpg?s=120&d=mm&r=g)
I defined variables which show current component and current system. They can be used by IDEs to navigate to sources, or by your code to do what you need. I suggested this as a modification of asdf, but asdf maintainers said that special variables are dangerous. Maybe. My code is here: https://bitbucket.org/budden/budden-tools/src/default/asdf-3.1.4-tools.lisp?at=default&fileviewer=file-view-default
![](https://secure.gravatar.com/avatar/ddc06239b4e27ec291e554d743acf770.jpg?s=120&d=mm&r=g)
P.S. it also depends on decorate-function system which is in that repository too. 2015-11-24 21:22 GMT+03:00, 73budden . <budden73@gmail.com>:
I defined variables which show current component and current system. They can be used by IDEs to navigate to sources, or by your code to do what you need.
I suggested this as a modification of asdf, but asdf maintainers said that special variables are dangerous. Maybe.
My code is here: https://bitbucket.org/budden/budden-tools/src/default/asdf-3.1.4-tools.lisp?at=default&fileviewer=file-view-default
participants (3)
-
73budden .
-
Didier Verna
-
Faré