summaryrefslogtreecommitdiff
path: root/doc/lispref
diff options
context:
space:
mode:
authorMichael Albinus <michael.albinus@gmx.de>2021-05-10 13:42:48 +0200
committerMichael Albinus <michael.albinus@gmx.de>2021-05-10 13:42:48 +0200
commit02c80307f13f7ffe3dc024aee72e47060b4a1996 (patch)
tree5316901517629c1151db2d43af4e3fba40a859c0 /doc/lispref
parentfafe912bd3e952835bb5876aab8c7bda2f4fee24 (diff)
downloademacs-02c80307f13f7ffe3dc024aee72e47060b4a1996.tar.gz
Extend meaning of UNIQUIFY `auto-save-file-name-transforms'. (Bug#47493)
* doc/lispref/backups.texi (Auto-Saving): Explain UNIQUIFY being a secure hash in auto-save-file-name-transforms. * etc/NEWS: Mention change in `auto-save-file-name-transforms'. * lisp/files.el (auto-save-file-name-transforms): Adapt docstring. (make-auto-save-file-name): Care, if UNIQ is a secure hash symbol.
Diffstat (limited to 'doc/lispref')
-rw-r--r--doc/lispref/backups.texi6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/lispref/backups.texi b/doc/lispref/backups.texi
index c0a4065bdbf..85a4f9e0acc 100644
--- a/doc/lispref/backups.texi
+++ b/doc/lispref/backups.texi
@@ -481,6 +481,12 @@ all directory separators were changed to @samp{!} to prevent clashes.
(This will not work correctly if your filesystem truncates the
resulting name.)
+If @var{uniquify} is one of the members of
+@code{secure-hash-algorithms}, Emacs constructs the nondirectory part
+of the auto-save file name by applying that @code{secure-hash} to the
+buffer file name. This avoids any risk of excessively long file
+names.
+
All the transforms in the list are tried, in the order they are listed.
When one transform applies, its result is final;
no further transforms are tried.