# autosv(2m)

[Home] [Commands] [Variables] [Macro-Dev] [Glossary]

## NAME

autosv - Automatic file save

## SYNOPSIS

autosv Mode

a - mode line letter.

## DESCRIPTION

When this mode is enabled when the buffer is changed it will be automatically saved to a temporary file $auto-time(5) later.

Automatic saving for a buffer will not occur if

The buffer name starts with a '*', this is considered a temporary system buffer.

$auto-time(5) is set to 0, this disables auto-saving for all buffers.

The buffer does not a file name from which to generate a temporary file name. When this occurs the error message:

`[Auto-writeout failure for buffer xxxxx]`

MicroEmacs 2009 can not write to the generated temporary file name. When this occurs the error message:

`[Auto-writeout failure for file xxxxx#]`

On unlimited length file name systems (UNIX), the temporary file naming convention used for file `xxxxx`:

`xxxxx -> xxxxx#`

On systems with an `xxxxxxxx.yyy` file name (DOS etc), the following file naming convention is used:

`xxxxxxxx -> xxxxxxxx.###`
`xxxxxxxx.y -> xxxxxxxx.y##`
`xxxxxxxx.yy -> xxxxxxxx.yy#`
`xxxxxxxx.yyy -> xxxxxxxx.yy#`

## NOTES

This mode MUST be enabled globally when the file is loaded for the file style to be correctly detected.

It is strongly advised that autosv mode is permanently enabled.

Auto-save files of URL files (i.e. "`ftp://...`" and "`http://...`") are written to the system's temporary directory. This avoids potentially slow auto-saves. This can however lead to recovery problems as the buffer name must be used to avoid auto-saving conflict with other buffers with the same base file name but different paths.

## SEE ALSO

Operating Modes, $auto-time(5), backup(2m), find-file(2), ftp(3).

(c) Copyright JASSPA 2009
Last Modified: 2009/08/29
Generated On: 2009/10/12

</HMTL>