From a2899d6cc6839b9c7d2674cc3d6f6bff6a7289c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kai=20Gro=C3=9Fjohann?= Date: Wed, 21 Nov 2001 08:32:57 +0000 Subject: [PATCH] * files.el (auto-save-file-name-transforms): Put remote files in temporary-file-directory rather than /tmp. --- lisp/ChangeLog | 5 +++++ lisp/files.el | 8 +++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 8b6a6b97e3d..da78448299e 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2001-11-20 Kai Grossjohann + + * files.el (auto-save-file-name-transforms): Put remote files in + temporary-file-directory rather than /tmp. + 2001-11-21 Colin Walters * calc/calc-macs.el (calc-slow-wrapper): Move (point) call outside diff --git a/lisp/files.el b/lisp/files.el index 5369a597deb..8d447f8e7a8 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -286,7 +286,8 @@ Normally auto-save files are written under other names." :group 'auto-save) (defcustom auto-save-file-name-transforms - '(("\\`/[^/]*:\\(.+/\\)*\\(.*\\)" "/tmp/\\2")) + `(("\\`/[^/]*:\\(.+/\\)*\\(.*\\)" + ,(expand-file-name "\\2" temporary-file-directory))) "*Transforms to apply to buffer file name before making auto-save file name. Each transform is a list (REGEXP REPLACEMENT): REGEXP is a regular expression to match against the file name. @@ -296,8 +297,9 @@ 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. -The default value is set up to put the auto-save file into `/tmp' -for editing a remote file." +The default value is set up to put the auto-save file into the +temporary directory (see the variable `temporary-file-directory') for +editing a remote file." :group 'auto-save :type '(repeat (list (string :tag "Regexp") (string :tag "Replacement"))) :version "21.1")