save-file in editor<%>
Saves the editor into a file and returns #t. If an error
occurs, an exception is raised.
The filename and format used to save the file can be retrieved with
get-filename. In a text% instance, the format can be retrieved
with
get-file-format.
See also
on-save-file,
after-save-file, and
can-save-file?.
Under Mac OS, the file's type signature is set to "TEXT"
for a text-format file or "WXME" for a standard-format
(binary) file.
( -> boolean
send an-editor save-file filename format show-errors?)
filename = : string or #f#f
format = : symbol in 'same'(guess standard text text-force-cr same copy)
show-errors? = : boolean#t
If filename is #f, 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 described at
load-file.
The show-errors? argument is no longer used.