Re: [Q] figuring out a system / source file

2015-11-24 Thread 73budden .
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=file-view-default



[Q] figuring out a system / source file

2015-11-24 Thread Didier Verna

  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



Re: [Q] figuring out a system / source file

2015-11-24 Thread Faré
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  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
>
>