+2001-11-20 Kai Grossjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
+
+ * files.el (auto-save-file-name-transforms): Put remote files in
+ temporary-file-directory rather than /tmp.
+
2001-11-21 Colin Walters <walters@debian.org>
* calc/calc-macs.el (calc-slow-wrapper): Move (point) call outside
: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.
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")