# HG changeset patch # User Kai Grojohann # Date 1006331577 0 # Node ID 54db34b4f62cec45072fbb1cd1c7a7489d87363d # Parent 141366cdb5441a9400df729c9f6b00333d556f84 * files.el (auto-save-file-name-transforms): Put remote files in temporary-file-directory rather than /tmp. diff -r 141366cdb544 -r 54db34b4f62c lisp/ChangeLog --- a/lisp/ChangeLog Wed Nov 21 06:24:04 2001 +0000 +++ b/lisp/ChangeLog Wed Nov 21 08:32:57 2001 +0000 @@ -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 -r 141366cdb544 -r 54db34b4f62c lisp/files.el --- a/lisp/files.el Wed Nov 21 06:24:04 2001 +0000 +++ b/lisp/files.el Wed Nov 21 08:32:57 2001 +0000 @@ -286,7 +286,8 @@ :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 @@ 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")