3.6.1 Specifying a package

If you are working in a particular package, you can adjust the current tool to display its symbols as you would refer to them from that package--that is, as the package sees them. This can make listings clearer and, more importantly, can show you which symbols have been exported from a package.

Doing this changes the process package of the tool. This means that both displayed symbols and symbols typed into the tool are assumed to be in the package specified. This can be useful in a browser, for example, if you intend to browse a number of different objects which come from the same package.

To change the process package for the active window:

  1. Choose Tools > Preferences... .
  2. Delete the package name in the Package box, and type in the name of the new package.
  3. Click
  4. to confirm this new name.
  5. Click Apply or OK to make the change.

Note: If you wish, you can partially type the package name and then click . This allows you to select from a list of all package names which begin with the partial input you have entered. See Completion for detailed instructions on using completion.

As an example, imagine you are looking at a list of symbols in the Inspector. You are working in the package FOO , and some of the symbols in the Inspector are in that package, while others are in another package. To change the current package of the Inspector to FOO , follow the instructions below:

  1. Choose Tools > Preferences... .
  2. The Preferences dialog indicates that COMMON-LISP-USER is the current package in this window.

  3. In the Package box, delete COMMON-LISP-USER , and type FOO .
  4. Click OK to make the change.

In the Inspector all the symbols available from FOO appear without the package prefix FOO . Similarly, all exported symbols in packages which FOO uses appear without a package prefix, while all others have an appropriate package prefix.

Common LispWorks User Guide (Windows version) - 21 Feb 2008