Buffer save_changes calls and

only save changes if there are changes to be saved.