Called when the buffer gets a call to on-local-event. The mode gets the first chance to handle the local event.