3.7 Displaying packages

3.7.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.

You can do this by choosing View > Package: package-name. The exact name of this command varies: package-name is the name of the current package in the tool. Type a new package name in the dialog that appears.

As an example, imagine you are looking at a list of symbols in the inspector. You are working in the packageFOO, 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 toFOO, follow the instructions below:

1. Choose View > Package: USER.

The name of the command indicates thatUSER is the current package in this window. A dialog appears, allowing you to change the current package.

2. In the dialog, delete the stringUSER, and typeFOO.

In the inspector all the symbols available fromFOO appear without the package prefixFOO. Similarly, all exported symbols in packages whichFOO uses appear without a package prefix, while all others have an appropriate package prefix.

Common LispWorks User Guide, Liquid Common Lisp Version 5.0 - 18 OCT 1996

Generated with Harlequin WebMaker