From: Stefan Monnier Date: Wed, 19 May 2004 00:30:43 +0000 (+0000) Subject: (auto-save-file-name-transforms): Make sure ange-ftp temp X-Git-Tag: ttn-vms-21-2-B4~6147 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b1e5937ca1bb2202e372e2d35122ad10077e5a61;p=emacs.git (auto-save-file-name-transforms): Make sure ange-ftp temp files files don't contain an accidental additional /. --- 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))