When a file is explicitly saved in the editor, a backup is automatically made by writing the old contents of the file to a backup before saving the new version of the file. The backup file appears in the same directory as the original file. By default its name is the same as the original file followed by a
Controls whether to make a backup copy of a file the first time it is modified. If the value is
, a backups is automatically made on first saving. If the value is
, no backup is made.
Default value: #\~
This variable contains the character used as a suffix for backup files. By default, this is the tilde (~) character.
Default value: "~A~A~A"
This control string is used with the Common Lisp
function to create the filename of the backup file.
is called with three arguments, the first being the directory name-string and the second being the file name-string of the pathname associated with the buffer. The third is the value of the editor variable
The backup file is created in the same directory as the file for which it is a backup, and it has the same name, followed by the backup-filename-suffix .
Note that the backup-suffix can be changed functionally as well as by interactive means. For example, the following code changes the suffix to the
(setf (editor:variable-value `editor:backup-filename-suffix
:current nil) #\@)