The $POP directive restores the values of all local compiler switches (so not all directives) with the last values that were stored on the settings stack. The settings are then deleted from the stack.
The settings can be stored on the stack with the $PUSH directive (see section 1.2.65, page 172).
Note that global settings are not restored by this directive.