You can actually set tramp-auto-save-directory to something and
auto-save would work again, as described by people on Spacemacs github.
Other than that, you're quite right as to the cause. Windows does not
allow ":" in filenames. Emacs also normally does not allow saving with
filenames like this, but (system-type 'not-windows) in
tramp-handle-make-auto-save-file-name overrides this. Names produced by
emacs look like this:
#!pscp!user@server#2903!!home!user!test!test.txt#
Also, tramp has it's own escape function, but it's used only when
tramp-auto-save-directory is non nil. For the same file this would produce:
#_apscp_buser@server#2903_b_ahome_auser_atest_atest.txt#
After looking for the purpose of that commit, I found out that it was an
attempt to fix earlier windows problem
<http://emacs.1067599.n8.nabble.com/The-default-auto-save-file-name-transforms-does-not-work-td363199.html>.
That bug it still fixed even if we remove (system-type 'not-windows).
So, Michael, I think you can just remove that and that would be the fix.
(system-type 'not-windows) should not have any effect on anything but
Windows, right?
--
Best Regards,
Nikolay Kudryavtsev
_______________________________________________
Tramp-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/tramp-devel