All Manuals > LispWorks User Guide and Reference Manual > 40 The LISPWORKS Package




Specifies the action on defining a symbol in certain packages.



Initial value



The variable *handle-warn-on-redefinition* specifies what action should be taken on defining external symbols in certain packages. It is designed to protect against (re)definition of symbols in implementation packages.

The protected packages are those specified in the variable *packages-for-warn-on-redefinition*.

If *handle-warn-on-redefinition* is set to :warn then you are warned. If it is set to :quiet or nil, the definition is done quietly. If, however, it is set to :error, then LispWorks signals an error.


The checking is useful because it is relatively easy to redefine an external symbol by mistake, and it leads to undefined behavior which is difficult to debug. It is therefore a bad idea to change the value of *handle-warn-on-redefinition* to something else. If required, do this by rebinding *handle-warn-on-redefinition* rather than setting its global value.

See also

Protecting packages

LispWorks User Guide and Reference Manual - 13 Feb 2015