emerge-unselect-hook is a variable defined in `emerge.el'.
Its value is
nil
This variable may be risky if used as a file-local variable.
Documentation:
Hook to run after a difference has been unselected.
The variable `n' holds the (internal) number of the difference.
You can customize this variable.