]> git.eshelyaron.com Git - emacs.git/commit
Factor out some Tramp code
authorMichael Albinus <michael.albinus@gmx.de>
Mon, 23 Jan 2023 10:02:56 +0000 (11:02 +0100)
committerMichael Albinus <michael.albinus@gmx.de>
Mon, 23 Jan 2023 10:02:56 +0000 (11:02 +0100)
commit85e330433230d8a4a2be6b40b730530a86b61cf4
treecd93ab72aa9d5378901b4ee46d735fb5abd70d71
parent26ef5c09e0a0b13c02e34d858f32c09b42d26dff
Factor out some Tramp code

* lisp/net/tramp-compat.el (tramp-file-name-handler): Don't declare.

* lisp/net/tramp.el (tramp-skeleton-file-truename)
(tramp-skeleton-handle-make-symbolic-link): New defmacros.
(tramp-handle-file-truename):
* lisp/net/tramp-sh.el (tramp-sh-handle-make-symbolic-link)
(tramp-sh-handle-file-truename):
* lisp/net/tramp-smb.el (tramp-smb-handle-make-symbolic-link):
* lisp/net/tramp-sudoedit.el (tramp-sudoedit-handle-file-truename)
(tramp-sudoedit-handle-make-symbolic-link): Use them.

* lisp/net/tramp.el (tramp-call-process, tramp-call-process-region):
Let-bind `temporary-file-directory'.

* test/lisp/net/tramp-tests.el (tramp-action-yesno):
Suppress run in tests.
(tramp-test21-file-links, tramp-test29-start-file-process)
(tramp-test30-make-process, tramp-test42-utf8): Adapt tests.
lisp/net/tramp-compat.el
lisp/net/tramp-sh.el
lisp/net/tramp-smb.el
lisp/net/tramp-sudoedit.el
lisp/net/tramp.el
test/lisp/net/tramp-tests.el