282 |
:group 'auto-save) |
:group 'auto-save) |
283 |
|
|
284 |
(defcustom auto-save-file-name-transforms |
(defcustom auto-save-file-name-transforms |
285 |
'(("\\`/[^/]*:\\(.+/\\)*\\(.*\\)" "/tmp/\\2")) |
`(("\\`/[^/]*:\\(.+/\\)*\\(.*\\)" |
286 |
|
,(expand-file-name "\\2" temporary-file-directory))) |
287 |
"*Transforms to apply to buffer file name before making auto-save file name. |
"*Transforms to apply to buffer file name before making auto-save file name. |
288 |
Each transform is a list (REGEXP REPLACEMENT): |
Each transform is a list (REGEXP REPLACEMENT): |
289 |
REGEXP is a regular expression to match against the file name. |
REGEXP is a regular expression to match against the file name. |
293 |
When one transform applies, its result is final; |
When one transform applies, its result is final; |
294 |
no further transforms are tried. |
no further transforms are tried. |
295 |
|
|
296 |
The default value is set up to put the auto-save file into `/tmp' |
The default value is set up to put the auto-save file into the |
297 |
for editing a remote file." |
temporary directory (see the variable `temporary-file-directory') for |
298 |
|
editing a remote file." |
299 |
:group 'auto-save |
:group 'auto-save |
300 |
:type '(repeat (list (string :tag "Regexp") (string :tag "Replacement"))) |
:type '(repeat (list (string :tag "Regexp") (string :tag "Replacement"))) |
301 |
:version "21.1") |
:version "21.1") |