1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-28 10:56:36 +00:00

Fix auto-save-file-name problem in Tramp on MS Windows. Do not merge

* lisp/net/tramp.el (tramp-handle-make-auto-save-file-name):
Fix a problem when running on MS Windows.
This commit is contained in:
Michael Albinus 2017-01-17 17:23:46 +01:00
parent 5569e64444
commit 3993dc500d

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