]> git.eshelyaron.com Git - emacs.git/commit
Add consistent environment for local process calls in Tramp
authorMichael Albinus <michael.albinus@gmx.de>
Wed, 23 Jul 2025 14:22:26 +0000 (16:22 +0200)
committerEshel Yaron <me@eshelyaron.com>
Fri, 25 Jul 2025 08:12:40 +0000 (10:12 +0200)
commit809790a1d23ab98e76531c5ff77375c2c7c2f00c
treef068b000e1c70f022190cd98d8a6494b3a4566f4
parent3ca6ba5aea74ac2feaa611e2e1cd2008ef1995c3
Add consistent environment for local process calls in Tramp

* lisp/net/tramp-adb.el (tramp-adb-maybe-open-connection):
* lisp/net/tramp-androidsu.el (tramp-androidsu-maybe-open-connection):
* lisp/net/tramp-gvfs.el (tramp-gvfs-handle-file-notify-add-watch):
* lisp/net/tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band)
(tramp-maybe-open-connection):
* lisp/net/tramp-smb.el (tramp-smb-handle-copy-directory)
(tramp-smb-handle-file-acl)
(tramp-smb-handle-file-notify-add-watch)
(tramp-smb-handle-set-file-acl, tramp-smb-maybe-open-connection):
* lisp/net/tramp-sudoedit.el (tramp-sudoedit-send-command):
Use `tramp-start-process'.  Do not call `tramp-post-process-creation'.

* lisp/net/tramp.el (with-tramp-local-environment): New defmacro.
(tramp-start-process): New defun.
(tramp-call-process, tramp-call-process-region)
(tramp-process-lines): Use `with-tramp-local-environment'.

(cherry picked from commit c142f0d246095b75bdb3a7d8bc3079a55e48f2b3)
lisp/net/tramp-adb.el
lisp/net/tramp-androidsu.el
lisp/net/tramp-gvfs.el
lisp/net/tramp-sh.el
lisp/net/tramp-smb.el
lisp/net/tramp-sudoedit.el
lisp/net/tramp.el