]> git.eshelyaron.com Git - emacs.git/commitdiff
(make-auto-save-file-name): Don't apply conversion to
authorAndrew Innes <andrewi@gnu.org>
Sat, 21 Oct 2000 13:11:56 +0000 (13:11 +0000)
committerAndrew Innes <andrewi@gnu.org>
Sat, 21 Oct 2000 13:11:56 +0000 (13:11 +0000)
remote (ange-ftp) file names.

lisp/w32-fns.el

index ea8f6ffbdddb5e1ef0e79231ed681063938b08e8..0f30dd63bead1c8a2a5801d6ab561359b5273e56 100644 (file)
@@ -237,7 +237,11 @@ You should set this to t when using a non-system shell.\n\n"))))
 Does not consider `auto-save-visited-file-name' as that variable is checked
 before calling this function.  You can redefine this for customization.
 See also `auto-save-file-name-p'."
-  (convert-standard-filename (original-make-auto-save-file-name)))
+  (let ((filename (original-make-auto-save-file-name)))
+    ;; Don't modify remote (ange-ftp) filenames
+    (if (string-match "^/\\w+@[-A-Za-z0-9._]+:" filename)
+       filename
+      (convert-standard-filename filename))))
 
 (defun convert-standard-filename (filename)
   "Convert a standard file's name to something suitable for the current OS.