Condition types are classes like any other class, so may be shaken out. However the code may contain many references to condition types through error calls that are never going to happen in the application. Therefore, there is a special deletion action for conditions, which is controlled by the
keywords :condition-deletion-action, :keep-conditions and :packages-to-remove-conditions.
When a condition is deleted (that is when
), trying to signal it returns a
, which means that it got the wrong type. On the other hand, it has all the information in the
slot. If the conditions are redirected (that is, when
), a stricter type is returned, but some of the information may be lost, because the condition that it redirects to has fewer slots.
User defined conditions are kept, unless:
:none, in which case all the conditions are eliminated, or
:minimal, in which case all the user conditions are deleted.