next up previous contents index
Next: Filesystem Operations Up: Pathnames Previous: Search-List Operations   Contents   Index

Search List Example

The search list code: can be defined as follows:

(setf (ext:search-list "code:") '("/usr/lisp/code/"))
It is now possible to use code: as an abbreviation for the directory `'/usr/lisp/code/ in all file operations. For example, you can now specifycode:eval.lisp to refer to the file `'/usr/lisp/code/eval.lisp.

To obtain the value of a search-list name, use the function search-list as follows:

(ext:search-list name)
Where name is the name of a search list as described above. For example, calling ext:search-list on code: as follows:
(ext:search-list "code:")
returns the list ("/usr/lisp/code/").



Peter Van Eynde 2001-03-08