Function UndoBuffer.saveForUndo

adds undo operation

void saveForUndo(
  EditOperation op
);