Sets the modified state of the buffer. Usually, the state is changed automatically after an insertion, deletion, or style change by calling this method. This method is usually not called when the state of the flag is not changing.
Calls the edit-modified method of the canvases that are displaying this buffer.