1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-03 11:33:37 +00:00

(auto-save-file-name-transforms): Make sure ange-ftp temp

files files don't contain an accidental additional /.
This commit is contained in:
Stefan Monnier 2004-05-19 00:30:43 +00:00
parent cc9f53769f
commit b1e5937ca1

View 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))