]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix auto-save-file-name problem in Tramp on MS Windows. Do not merge
authorMichael Albinus <michael.albinus@gmx.de>
Tue, 17 Jan 2017 16:23:46 +0000 (17:23 +0100)
committerMichael Albinus <michael.albinus@gmx.de>
Tue, 17 Jan 2017 16:23:46 +0000 (17:23 +0100)
* lisp/net/tramp.el (tramp-handle-make-auto-save-file-name):
Fix a problem when running on MS Windows.

lisp/net/tramp.el

index b4242c0e6a7056e39f6bf3e6e3c309f4387dc0e8..f350f2a40d8415d3557174446ab4d7a36df743ba 100644 (file)
@@ -4102,7 +4102,11 @@ this file, if that variable is non-nil."
              (file-exists-p tramp-auto-save-directory))
     (make-directory tramp-auto-save-directory t))
 
-  (let ((system-type 'not-windows)
+  (let ((system-type
+        (if (and (stringp tramp-auto-save-directory)
+                 (file-remote-p tramp-auto-save-directory))
+            'not-windows
+          system-type))
        (auto-save-file-name-transforms
         (if (and (null tramp-auto-save-directory)
                  (boundp 'auto-save-file-name-transforms))