]> git.eshelyaron.com Git - emacs.git/commitdiff
(auto-save-file-name-transforms): Make sure ange-ftp temp
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 19 May 2004 00:30:43 +0000 (00:30 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 19 May 2004 00:30:43 +0000 (00:30 +0000)
files files don't contain an accidental additional /.

lisp/files.el

index 91da8a4c2c73037972cbf66a96110db834fde850..99cad16cf5bd817b99a62bc45d5970249208fa14 100644 (file)
@@ -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))