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, its name being the same as that file followed by a
If the value of this variable is
, backups are automatically made on file saving. If its value is
, no backups are 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) #\@)