Called just before the editor is saved to a file, after calling can-save-file? to verify that the save is allowed. See also after-save-file.
The filename argument is the name the file will be saved to. See load-file for information about format.
If the file-format is 'copy, the file format is set to 'std during the call to the super method. After that, the file format is restored to its original value.
If the file-format is not 'copy and this text% object has any non-string-snip% objects, the file-format is set to 'std. In this case, the user is queried if the 'framework:verify-change-format preference is #t.