<div dir="auto"><div><div class="gmail_quote"><div dir="ltr">On Fri, Mar 16, 2018, 11:25 Robert Dodier <<a href="mailto:robert.dodier@gmail.com">robert.dodier@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
I am resuming my tinkering on the Maxima interface to ASDF. I have<br>
bumped into a kind of minor problem for which I don't see a solution.<br>
<br>
Maxima can read .info files for documentation items. An index file<br>
(Lisp) which is created ahead of time (not run time) tells where the<br>
items are in the .info. The .asd, index, and .info are all in the same<br>
directory. Some code in the index file tells Maxima to read the .info<br>
from the same place from which the index is loaded (via<br>
*LOAD-PATHNAME*).<br>
<br>
That works great when the asd is loaded via LOAD-SOURCE-OP since<br>
*LOAD-PATHNAME* points to the directory where the .info file is. But<br>
when the asd is loaded via LOAD-OP, it doesn't work, since<br>
*LOAD-PATHNAME* points into the place that ASDF puts fasls.<br>
<br>
I gather from the ASDF reference manual that there isn't any way to<br>
load, without compiling, only the index file (I'm looking at "How do I<br>
mark a source file to be loaded only and not compiled?"). So I'm<br>
thinking about some other way to locate the .info file. Is there a<br>
special variable or something which tells the path from which the .asd<br>
is being loaded? I looked at the documentation and the list of<br>
external symbols but couldn't puzzle out anything.<br>
<br>
The more general idea is that the system contains a non-Lisp data<br>
file. Is there a general approach to work with that?<br>
<br>
Thanks for any light you can shed on this problem.<br>
<br>
Robert Dodier<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">The way I've been doing this is with a :STATIC-FILE component (you must include file extensions).</div><div dir="auto"><br></div><div dir="auto">ASDF will put your static file into the FASL location without touching it then you can find it to load using ASDF:FIND-COMPONENT. One of the component's slots will have the pathname of the "compiled" file in it, you don't have to use *LOAD-TRUENAME*.</div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
</blockquote></div></div></div>