On Tue, 24 Aug 2004 09:11:39 -0700, Peter Seibel peter@javamonkey.com said:
Peter> Helmut Eller e9626484@stud3.tuwien.ac.at writes:
You mean because we always pass a directory argument, even if its only NIL and thus the will never happen? I guess I should just bind *default-pathname-defaults* to (if directory (merge-pathnames (pathname directory)) *default-pathname-defaults*) and take the default value of the directory parameter.
Yes, that should work. You could also pass the buffer-file-name and bind it, appropriately parsed, to *default-pathname-defaults*.
Peter> Okay, so I started making the changes to the othe swank-*.lisp files. Peter> But I couldn't decide whether I should bind Peter> *default-pathname-defaults* in them (when there's no particular reason Peter> to) in order to be consistent with swank-allegro.lisp and to do Peter> something with the argument. Or should I just (declare (ignore Peter> directory))?
In my experience, almost all bindings of *default-pathname-defaults* are a mistake anyway, so I would say no.
__Martin