6 Reading "info.ss" Files
| ||||||||
collection-names : (listof string?) |
Otherwise, get-info/full returns an info procedure of one or two arguments. The first argument to the info procedure is always a symbolic name, and the result is the value of the name in the "info.ss" file, if the name is defined. The optional second argument, thunk, is a procedure that takes no arguments to be called when the name is not defined; the result of the info procedure is the result of the thunk in that case. If the name is not defined and no thunk is provided, then an exception is raised.
(find-relevant-directories syms [mode]) → (listof path?) |
syms : (listof symbol?) |
mode : (symbols 'preferred 'all-available) = 'preferred |
The result is in a canonical order (sorted lexicographically by directory name), and the paths it returns are suitable for providing to get-info/full.
If mode is specified, it must be either 'preferred (the default) or 'all-available. If mode is 'all-available, find-relevant-collections returns all installed directories whose info files contain the specified symbols – for instance, all installed PLaneT packages will be searched if 'all-available is specified. If mode is 'preferred, then only a subset of “preferred” packages will be searched, and in particular only the directory containing the most recent version of any PLaneT package will be returned.
No matter what mode is specified, if more than one collection has the same name, find-relevant-directories will only search the one that occurs first in the PLT_COLLECTION_PATHS environment variable.