Update signature of calls to TextBuffer::transact