See begin-edit-sequence.
Unlike the primitive editor<%> method's end-edit-sequence, this will raise an exception when it is called without an matching call to begin-edit-sequence.