One thing I find myself doing over and over (and I don't think I'm alone in this) in .asd files is to capture a pathname for the directory of the system definition file. This is particularly important when one has code that wants to load data files, in the presence of FASL file relocation (since it means that source code files can't effectively use *load-truename*).
Bits of code like this seem like a good candidate for being added to the ASDF API.
Any thoughts?
R
You mean, things like (asdf:system-relative-pathname :xcvb "") or (asdf:system-relative-pathname :xcvb "master.lisp") ?
Should be working well since 1.649.
It's even documented. The example with "" should be given, though.
PS: are you keeping that lock on asdf.texinfo?
[ François-René ÐVB Rideau | Reflection&Cybernethics | http://fare.tunes.org ] Government is the great fiction through which everybody endeavors to live at the expense of everybody else. — F. Bastiat, "Government".
On 24 March 2010 14:28, Robert Goldman rpgoldman@sift.info wrote:
One thing I find myself doing over and over (and I don't think I'm alone in this) in .asd files is to capture a pathname for the directory of the system definition file. This is particularly important when one has code that wants to load data files, in the presence of FASL file relocation (since it means that source code files can't effectively use *load-truename*).
Bits of code like this seem like a good candidate for being added to the ASDF API.
Any thoughts?
R
On 3/24/10 Mar 24 -1:36 PM, Faré wrote:
You mean, things like (asdf:system-relative-pathname :xcvb "") or (asdf:system-relative-pathname :xcvb "master.lisp") ?
Should be working well since 1.649.
It's even documented. The example with "" should be given, though.
Great. I will have a look. Thanks!
PS: are you keeping that lock on asdf.texinfo?
I have moved the file and pushed the results.
If you are going to modify it, please try cd to doc and
make asdf.info make asdf.html make asdf.pdf
and LMK if anything untoward happens.
Cheers, r
[ François-René ÐVB Rideau | Reflection&Cybernethics | http://fare.tunes.org ] Government is the great fiction through which everybody endeavors to live at the expense of everybody else. — F. Bastiat, "Government".
On 24 March 2010 14:28, Robert Goldman rpgoldman@sift.info wrote:
One thing I find myself doing over and over (and I don't think I'm alone in this) in .asd files is to capture a pathname for the directory of the system definition file. This is particularly important when one has code that wants to load data files, in the presence of FASL file relocation (since it means that source code files can't effectively use *load-truename*).
Bits of code like this seem like a good candidate for being added to the ASDF API.
Any thoughts?
R
On 3/24/10 Mar 24 -1:56 PM, Robert Goldman wrote:
On 3/24/10 Mar 24 -1:36 PM, Faré wrote:
You mean, things like (asdf:system-relative-pathname :xcvb "") or (asdf:system-relative-pathname :xcvb "master.lisp") ?
Should be working well since 1.649.
It's even documented. The example with "" should be given, though.
Great. I will have a look. Thanks!
Actually, it looks like what I want is really
(asdf::system-source-directory :xcvb)
Could that be exported?
Also (I could do this myself) would it be OK to promote that to be a GF and add a method on the system as well as the name (presumably that's string or symbol)?
thanks, r
Go ahead. Document it, too.
[ François-René ÐVB Rideau | Reflection&Cybernethics | http://fare.tunes.org ] Nihil in intellectu nisi prius in sensu (Nothing in intellect unless first in the senses)
On 24 March 2010 15:04, Robert Goldman rpgoldman@sift.info wrote:
On 3/24/10 Mar 24 -1:56 PM, Robert Goldman wrote:
On 3/24/10 Mar 24 -1:36 PM, Faré wrote:
You mean, things like (asdf:system-relative-pathname :xcvb "") or (asdf:system-relative-pathname :xcvb "master.lisp") ?
Should be working well since 1.649.
It's even documented. The example with "" should be given, though.
Great. I will have a look. Thanks!
Actually, it looks like what I want is really
(asdf::system-source-directory :xcvb)
Could that be exported?
Also (I could do this myself) would it be OK to promote that to be a GF and add a method on the system as well as the name (presumably that's string or symbol)?
thanks, r