(auto-save-file-name-transforms): Don't run "\\2" via expand-file-name.
This commit is contained in:
parent
8bff61e5c5
commit
747981b0cb
1 changed files with 3 additions and 1 deletions
|
@ -294,7 +294,9 @@ Normally auto-save files are written under other names."
|
|||
|
||||
(defcustom auto-save-file-name-transforms
|
||||
`(("\\`/[^/]*:\\(.+/\\)*\\(.*\\)"
|
||||
,(expand-file-name "\\2" temporary-file-directory)))
|
||||
;; Don't put "\\2" inside expand-file-name, since it will be
|
||||
;; transformed to "/2" on DOS/Windows.
|
||||
,(concat (expand-file-name temporary-file-directory) "\\2")))
|
||||
"*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.
|
||||
|
|
Loading…
Add table
Reference in a new issue