editor:find-file-buffer pathname &optional check-function
Returns a buffer associated with the file
, reading the file into a new buffer if necessary. The second value returned is
if a new buffer is created, and
otherwise. If the file already exists in a buffer, its consistency is first checked by means of
. If no value is supplied for
, editor:check-disk-version-consistent is used.
editor:fast-save-all-buffers &optional ask
Saves all modified buffers which are associated with a file. If
then confirmation is asked for before saving each buffer. If
is not set, all buffers are saved without further prompting.
Unlike the editor command Save All Files this function can be run without any window interaction. It is thus suitable for use in code which does not intend to allow the user to leave any buffers unsaved, and from the console if it is necessary to save buffers without re-entering the full window system.
editor:check-disk-version-consistent pathname buffer
Checks that the date of the file
is not more recent than the last time
was saved. If
is more recent, the user is prompted on how to proceed. Returns
if there is no need to read the file from disk and
if it should be read from disk.
Returns the pathname of the file associated with
. If no file is associated with