From b1e5937ca1bb2202e372e2d35122ad10077e5a61 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Wed, 19 May 2004 00:30:43 +0000 Subject: [PATCH] (auto-save-file-name-transforms): Make sure ange-ftp temp files files don't contain an accidental additional /. --- lisp/files.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/files.el b/lisp/files.el index 91da8a4c2c7..99cad16cf5b 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -293,7 +293,7 @@ Normally auto-save files are written under other names." :group 'auto-save) (defcustom auto-save-file-name-transforms - `(("\\`/[^/]*:\\(.+/\\)*\\(.*\\)" + `(("\\`/[^/]*:\\([^/]*/\\)*\\([^/]*\\)\\'" ;; Don't put "\\2" inside expand-file-name, since it will be ;; transformed to "/2" on DOS/Windows. ,(concat temporary-file-directory "\\2") t)) -- 2.39.5