]> git.eshelyaron.com Git - emacs.git/commit
Improve symlinks for Tramp
authorMichael Albinus <michael.albinus@gmx.de>
Wed, 30 Aug 2017 10:00:26 +0000 (12:00 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Wed, 30 Aug 2017 10:00:26 +0000 (12:00 +0200)
commit9376ea3f6c736f62cc064088b2e020a9f89bae63
tree0170a37cd464d0ec513c4a173bd9fd1e425646e0
parent9ef61c17af49886d150b938f51040ff3a1da1c80
Improve symlinks for Tramp

* lisp/files.el (files--splice-dirname-file): Quote whole file.

* lisp/net/tramp-sh.el (tramp-sh-handle-make-symbolic-link):
Do not expand TARGET, it could be remote.
(tramp-sh-handle-file-truename): Check for cyclic symlink also
in case of readlink.  Quote result if it looks remote.
(tramp-sh-handle-file-local-copy): Use `file-truename'.

* test/lisp/net/tramp-tests.el (tramp-test08-file-local-copy)
(tramp-test09-insert-file-contents): Test also file missing.
(tramp-test21-file-links): Extend test.
lisp/files.el
lisp/net/tramp-sh.el
test/lisp/net/tramp-tests.el