LispWorks IDE User Guide > 3 Common Features > 3.7 Displaying packages

NextPrevUpTopContentsIndex

3.7.1 Specifying a package

If you are working in a particular package, you can adjust the tools to display 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 a given type of tool:

  1. Raise the Preferences dialog as described in Setting preferences.
  2. Select the tool type in the list on the left side of the dialog.
  3. Select the General tab on the right side of the dialog, if necessary.
  4. Delete the package name in the Package box, and type in the name of the new package.
  5. Click
  6. to confirm this new name.
  7. Click 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. Raise the Preferences dialog as described in Setting preferences.
  2. The Preferences dialog indicates that COMMON-LISP-USER is the current package in this window.

  3. Select Inspector in the list on the left side of the dialog.
  4. In the Package box on the right side of the dialog, delete COMMON-LISP-USER , and type FOO .
  5. 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.


LispWorks IDE User Guide (Windows version) - 22 Dec 2009

NextPrevUpTopContentsIndex