]> git.eshelyaron.com Git - emacs.git/commit
Refactor tramp-*-process-file functions
authorMichael Albinus <michael.albinus@gmx.de>
Tue, 11 Jun 2024 12:43:28 +0000 (14:43 +0200)
committerEshel Yaron <me@eshelyaron.com>
Wed, 12 Jun 2024 09:28:56 +0000 (11:28 +0200)
commit867acd3326a595c8e68623e9514411a76f2913dd
treebd4895c5a164a05d3cb3f44381ee6fa8d149f9bb
parent5f74e4827457ffa644283e981b77621b0cfe7e10
Refactor tramp-*-process-file functions

* lisp/net/tramp-adb.el (tramp-adb-handle-make-process):
* lisp/net/tramp-sh.el (tramp-sh-handle-make-process): Don't compute
process name, this is done in `tramp-skeleton-make-process'.

* lisp/net/tramp-adb.el (tramp-adb-handle-process-file):
* lisp/net/tramp-sh.el (tramp-sh-handle-process-file):
* lisp/net/tramp-sshfs.el (tramp-sshfs-handle-process-file):
Use `tramp-skeleton-process-file'.

* lisp/net/tramp.el (tramp-get-unique-process-name): New defun.
(tramp-skeleton-make-process): Use it.
(tramp-skeleton-process-file): New defmacro.

(cherry picked from commit 5ecff95993d5edbffb27e14c2815d2b23003bcb4)
lisp/net/tramp-adb.el
lisp/net/tramp-sh.el
lisp/net/tramp-sshfs.el
lisp/net/tramp.el