Saves the buffer into a file.
The filename and format used to save the file can be retrieved with get-filename and get-file-format.
If filename is null, then the internally stored filename will be used; if filename is "" or if the internal name is unset or temporary, then the user will be prompted for a name. The possible values for format are listed at load-file.