From 02c80307f13f7ffe3dc024aee72e47060b4a1996 Mon Sep 17 00:00:00 2001 From: Michael Albinus Date: Mon, 10 May 2021 13:42:48 +0200 Subject: 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. --- doc/lispref/backups.texi | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'doc/lispref') 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. -- cgit v1.2.3