[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: questions regarding pathnames



Dan Stanger <dxs@evolving.com> asks:

> can someone give me a example of the use of *default-pathname-defaults*?

*DEFAULT-PATHNAME-DEFAULTS* affects most pathname operations, including
PARSE-NAMESTRING. It is similar to CLISP's (DEFAULT-DIRECTORY) function.

After (setq *default-pathname-defaults* '#"/tmp/"), a call to
(open (merge-pathnames "foo"))  actually opens  #"/tmp/foo".

> i am on a unix platform and would like to have a directory fas in the
> directory that i am working in to contain compiled files.  when i load a
> file i would like to have that directory searched first.

Try putting #"fas/" at the head of your *LOAD-PATHS* list.


                    Bruno Haible
                    haible@ma2s2.mathematik.uni-karlsruhe.de