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.