Simultaneous changes to separate parts of one file