Called just before the buffer is saved to a file. If the return value is #f, the file is not saved. See also after-save-file.
This method does the checking to see what file format should be used. It sets the buffers file-format to that format. See also on-save-file.