next up previous contents
Next: 2.14 Filesystem Operations Up: 2.13 Pathnames Previous: Search-List Operations

2.13.7 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 specify code: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/").



Raymond Toy
Mon Jul 14 09:11:27 EDT 1997