Êíèãà: Learning GNU Emacs, 3rd Edition

Table A-1. Backups, auto-save, and versioning

Table A-1. Backups, auto-save, and versioning

Table A-1. Backups, auto-save, and versioning (Chapter 2, Chapter 12)

Variable Default Description
make-backup-files t If t, create a backup version of the current file before saving it for the first time.
backup-by-copying nil If t, create backup files by copying rather than renaming the file being saved to a backup version. The default is renaming, which is more efficient. Copying can yield different results, especially when you're editing files owned by another user, and in operating systems that allow "hard links" to files (alternate names that are associated with the physical file). There are a raft of variables that can tweak this behavior based on context; check the online help for make-backup-files for the details.
version-control nil If t, create numbered versions of files as backups (with names of the form filename~N~). If nil, only do this for files that have numbered versions already. If 'never (note the leading single quote), never make numbered versions.
kept-new-versions 2 Number of latest versions of a file to keep when a new numbered backup is made.
kept-old-versions 2 Number of oldest versions of a file to keep when a new numbered backup is made.
delete-old-versions nil If t, delete excess versions (not those kept according to the above variables) without asking for confirmation first. If nil, ask for confirmation first. If any other value, don't delete excess versions.
auto-save-default t If t, do auto-saving of every file visited.
auto-save-visited-file-name nil If t, auto-save to the file being visited rather than to a special auto-save file.
auto-save-interval 300 Number of keystrokes between auto-saving; if 0, turn off auto-saving.
auto-save-timeout 30 Length of time of inactivity after which Emacs auto-saves. If nil or 0, turn off this feature.
delete-auto-save-files t Non-nil means delete auto-save files whenever the "real" file is saved.
buffer-offer-save nil Non-nil means offer to save the current buffer when exiting Emacs, even if the buffer is not a file.
vc-handled-backends (RCS CVS SVN SCCS Arch MCVS) Version control systems used with the vc package. The order in which they appear in this list controls the order in which they will be attempted when working with a new file.
vc-display-status t If non-nil, display the version number and the locked state in the mode line.
vc-keep-workfiles t If non-nil, do not delete work files after you register changes with the version control system.
vc-mistrust-permissions nil If non-nil, do not assume that a file's owner ID and permission flags reflect version control system's idea of file's ownership and permission; get this information directly from version control system.
vc-suppress-confirm nil If non-nil, do not ask for confirmation before performing version control actions.
vc-initial-comment nil If non-nil, prompt for an initial comment when registering a file with version control system.
vc-make-backup-files nil If non-nil, make standard Emacs backups of files registered with version control.
diff-switches -c Command-line switches used to control the format of change reports by VC as well as diff.el.

Îãëàâëåíèå êíèãè


Ãåíåðàöèÿ: 1.601. Çàïðîñîâ Ê ÁÄ/Cache: 3 / 1
ïîäåëèòüñÿ
Ââåðõ Âíèç