[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
saving all LOADed files...
- To: cornell@unix1.cs.umass.edu
- Subject: saving all LOADed files...
- From: alms@cambridge.apple.com (Andrew L. M. Shalit)
- Date: Tue, 24 Jul 90 15:01:49 -0400
- Cc: info-macl
- In-reply-to: Matthew Cornell's message of Sun, 22 Jul 90 10:01:48 EDT <9007221401.AA03125@unix1.CS.UMASS.EDU>
From: cornell@unix1.cs.umass.edu (Matthew Cornell)
1) I'm making a program that generates a "script" for my backup
program (Redux) based on what files MACL loads. Well, I tried patching
both load and open to save their argument on a list, but neither is
called by require. What is the function I *can* patch to get the full
filename of files?
In general, you can't count on patching any built-in functions,
espcially Common Lisp functions. Calls to these functions are
likely to be coded directly, rather than going through the symbol.
To get the effect you want, you probably need to use your own
defsystem. I believe there is one on the public directory here.
2) Some of those filenames which *do* make it to my *loaded-files*
list don't have an extension (i.e. no ".lisp") so I need to invoke the
default MACL pathname "lispifier", which is smart about whether to add
.fasl, .lisp or nothing. [You see this behavior when you do (ed
"init"), for example]. What is the function to use?
Expand-logical-pathname isn't it.
I don't think this behavior is canonicalized in a function. Rather,
it is done by two variables, *.lisp-pathname* and *.fasl-pathname*,
if my memory serves me properly.
-andrew