Previous: , Up: Pathnames   [Contents][Index]


2.16.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/").