changeset 44231:18a0fcd0705c

(auto-save-file-name-transforms): Don't run "\\2" via expand-file-name.
author Eli Zaretskii <eliz@gnu.org>
date Fri, 29 Mar 2002 14:02:54 +0000
parents 3f6a213458ad
children abe28f3ccf1c
files lisp/files.el
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/files.el	Fri Mar 29 13:35:38 2002 +0000
+++ b/lisp/files.el	Fri Mar 29 14:02:54 2002 +0000
@@ -294,7 +294,9 @@
 
 (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.