Each directory named by the variable load-path is searched until
the file containing program is found. In each directory three
different file names are tried,
If none of these gives a result the next directory is searched in the
same way, when all directories in load-path have been exhausted
and the file still has not been found an error is signalled.
Next the file is opened for reading and Lisp forms are read from it
one at a time, each form is evaluated before the next form is read. When
the end of the file is reached the file has been loaded and this function
returns t.
The optional arguments to this function are used to modify its behaviour,
nil no error is signalled if the file
can not be located. Instead the function returns nil.
load-path is not used, program must point to
the file from the current working directory.
nil no `.jlc' or `.jl' suffixes are applied to
the program argument when locating the file.
If a version of the program whose name ends in `.jlc' is older than a `.jl' version of the same file (i.e. the source code is newer than the compiled version) a warning is displayed and the `.jl' version is used.
(load "foobar")
error--> File error: Can't open lisp-file, foobar
(load "foobar" t)
=> nil
load-path
=> ("" "/usr/local/lib/jade/3.2/lisp/")
The element "" means the current directory, note that directory
names should have an ending `/' (or whatever) so that when concatenated
with the name of the file they make a meaningful filename.
lisp-lib-dir
=> "/usr/local/lib/jade/3.2/lisp/"
Go to the first, previous, next, last section, table of contents.