NextPrevUpTopContentsIndex

12.13.7 Packages

It is important to understand how the current package (that is, the value of the Common Lisp variable *package* ) is determined when running Lisp operations such as evaluation or compilation commands in a buffer. Usually it is obvious: most Lisp source files have a single in-package form. The Editor uses the specified package as the current package when you evaluate or compile code in that buffer, or perform some other operation that depends on the current package.

However it is possible for a source file to contain multiple in-package forms, or none at all. In this case, the Editor uses a suitable binding for the current package depending on the location in the buffer, as described below. This means that you do not have to worry about setting the package explicitly before evaluating part of a buffer, and that operations within a buffer use the expected current package.

12.13.7.1 The primary package

12.13.7.2 The current package for Lisp operations


Common LispWorks User Guide (Windows version) - 5 Jul 2006

NextPrevUpTopContentsIndex