Function UndoBuffer.modified

returns true if content has been changed since last saved() or clear() call

bool modified() @property;