notify-when-selection-changed

Arguments:
text-edit-pane

Returns the value of this property of the argument and can be set with
setf. If true, the selection-changed method is called
when the selection in the window changes. The default method does
little but you can add before or after methods as needed.