From: Eli Zaretskii Date: Thu, 19 Sep 2024 05:20:04 +0000 (+0300) Subject: ; Improve doc strings of options related to numbered backups X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=4b31c950a57bbf1c7936e9dc0f21d33976e6d66c;p=emacs.git ; Improve doc strings of options related to numbered backups * lisp/files.el (version-control, dired-kept-versions) (delete-old-versions, kept-old-versions, kept-new-versions): Doc fixes. (cherry picked from commit 0f0f21b7f27265e7c9c3a47dc6c9042324f2b031) --- diff --git a/lisp/files.el b/lisp/files.el index aa58a40253e..5f5b59ed04a 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -299,12 +299,12 @@ See also `backup-by-copying' and `backup-by-copying-when-linked'." :version "23.1") (defcustom version-control nil - "Control use of version numbers for backup files. -When t, make numeric backup versions unconditionally. -When nil, make them for files that have some already. -The value `never' means do not make them." + "Control use of version-numbered backup files. +When t, make numbered backup files unconditionally. +When nil, make them for files that already have numbered backups. +The value `never' means never make numbered backups." :type '(choice (const :tag "Never" never) - (const :tag "If existing" nil) + (const :tag "If numbered backups exist" nil) (other :tag "Always" t)) :safe #'version-control-safe-local-p :group 'backup) @@ -314,28 +314,36 @@ The value `never' means do not make them." (or (booleanp x) (equal x 'never))) (defcustom dired-kept-versions 2 - "When cleaning directory, number of versions to keep." + "When cleaning directory, number of versions of numbered backups to keep. +See `version-control', `kept-old-versions' and `kept-new-versions' for +more about keeping and deleting old versioned (a.k.a. \"numbered\") +backup files." :type 'natnum :group 'backup :group 'dired) (defcustom delete-old-versions nil - "If t, delete excess backup versions silently. -If nil, ask confirmation. Any other value prevents any trimming." + "If t, delete excess numbered backup files silently. +If nil, ask confirmation. Any other value prevents any trimming. +See `version-control', `kept-old-versions', `kept-new-versions' +and `dired-kept-versions' for more about keeping and deleting old +versioned (a.k.a. \"numbered\") backup files." :type '(choice (const :tag "Delete" t) (const :tag "Ask" nil) (other :tag "Leave" other)) :group 'backup) (defcustom kept-old-versions 2 - "Number of oldest versions to keep when a new numbered backup is made." + "Number of oldest versions to keep when a new numbered backup is made. +See `version-control' for how Emacs decides when to make numbered backups." :type 'natnum :safe #'natnump :group 'backup) (defcustom kept-new-versions 2 "Number of newest versions to keep when a new numbered backup is made. -Includes the new backup. Must be greater than 0." +Includes the new backup. Must be greater than 0. +See `version-control' for how Emacs decides when to make numbered backups." :type 'natnum :safe #'natnump :group 'backup)