load-moduleModule Manager Facilitymodule-directoriesload-module-fileGoTo Top

load-module-file   module-name file-name &rest options => pathname[Function]

Purpose
Load a single file from a module.

Package   :module-manager

Module   :module-manager

Arguments and values

module-name     A keyword symbol naming a module
file-name     A string naming a file in the module
option     Any of the following keywords:

:noautorun    Binds *autorun-modules* to nil during loading
:print Incrementally prints information during loading
:source Loads from the source file even if the existing compiled file is newer than the source file

pathname

     A pathname

Returns
The pathname of the loaded file.

Errors
Module module-name has not been defined.
File file-name is not associated with the module.

A relative directory specification contains a circularity.

Description
File options specified for individual files in the module definition (see define-module) are ignored by load-module-file.

See also
    *autorun-modules*
    define-module
    load-module

Example
Load the source of the file tools from the GBBopen Tools module:

  > (load-module-file :gbbopen-tools "tools" :source)
  ;; Loading <install-dir>/source/tools/tools.lisp
  #P"<install-dir>/source/tools/tools.lisp"
  >

REPL Note
Load-module-file can be invoked using the REPL command:

  :lmf [module-name file-name [option*]]
which remembers the last specified module-name, file-name, and options as default values for the command.


The GBBopen Project


load-moduleModule Manager Facilitymodule-directoriesload-module-fileGoTo Top