diff options
| author | Michael Albinus | 2024-12-30 12:42:00 +0100 |
|---|---|---|
| committer | Michael Albinus | 2024-12-30 12:42:00 +0100 |
| commit | 7671d50b149edd9e19c29f5fa8ee71c01e2f583d (patch) | |
| tree | 43cbdf7e4ef56d5ba3721bd55249ceedd6b78b1d | |
| parent | ec3f9434c7d615dc37ba444a2200f13c84984299 (diff) | |
| download | emacs-7671d50b149edd9e19c29f5fa8ee71c01e2f583d.tar.gz emacs-7671d50b149edd9e19c29f5fa8ee71c01e2f583d.zip | |
; Minor Tramp changes
* lisp/net/tramp.el (tramp-handle-make-process):
* lisp/net/tramp-adb.el (tramp-adb-handle-make-process):
* lisp/net/tramp-androidsu.el (tramp-androidsu-handle-make-process):
* lisp/net/tramp-sh.el (tramp-sh-handle-make-process):
* lisp/net/tramp-smb.el (tramp-smb-handle-start-file-process):
Don't use connection property "remote-command", it's superfluous.
* lisp/net/tramp-archive.el (tramp-archive-local-file-name):
Add `tramp-archive-method' to `tramp-methods' temporarily.
| -rw-r--r-- | lisp/net/tramp-adb.el | 2 | ||||
| -rw-r--r-- | lisp/net/tramp-androidsu.el | 1 | ||||
| -rw-r--r-- | lisp/net/tramp-archive.el | 3 | ||||
| -rw-r--r-- | lisp/net/tramp-sh.el | 2 | ||||
| -rw-r--r-- | lisp/net/tramp-smb.el | 4 | ||||
| -rw-r--r-- | lisp/net/tramp.el | 1 |
6 files changed, 3 insertions, 10 deletions
diff --git a/lisp/net/tramp-adb.el b/lisp/net/tramp-adb.el index 7fbb2332e89..27570645b60 100644 --- a/lisp/net/tramp-adb.el +++ b/lisp/net/tramp-adb.el | |||
| @@ -846,8 +846,6 @@ will be used." | |||
| 846 | (when filter | 846 | (when filter |
| 847 | (set-process-filter p filter)) | 847 | (set-process-filter p filter)) |
| 848 | (process-put p 'remote-command orig-command) | 848 | (process-put p 'remote-command orig-command) |
| 849 | (tramp-set-connection-property | ||
| 850 | p "remote-command" orig-command) | ||
| 851 | ;; Set query flag and process marker for this | 849 | ;; Set query flag and process marker for this |
| 852 | ;; process. We ignore errors, because the | 850 | ;; process. We ignore errors, because the |
| 853 | ;; process could have finished already. | 851 | ;; process could have finished already. |
diff --git a/lisp/net/tramp-androidsu.el b/lisp/net/tramp-androidsu.el index 9b45b416ff9..2dde7094c27 100644 --- a/lisp/net/tramp-androidsu.el +++ b/lisp/net/tramp-androidsu.el | |||
| @@ -375,7 +375,6 @@ FUNCTION." | |||
| 375 | ;; so we reset it. | 375 | ;; so we reset it. |
| 376 | (set-process-query-on-exit-flag p (null noquery)) | 376 | (set-process-query-on-exit-flag p (null noquery)) |
| 377 | (process-put p 'remote-command orig-command) | 377 | (process-put p 'remote-command orig-command) |
| 378 | (tramp-set-connection-property p "remote-command" orig-command) | ||
| 379 | (when (bufferp stderr) | 378 | (when (bufferp stderr) |
| 380 | (tramp-taint-remote-process-buffer stderr)) | 379 | (tramp-taint-remote-process-buffer stderr)) |
| 381 | p))) | 380 | p))) |
diff --git a/lisp/net/tramp-archive.el b/lisp/net/tramp-archive.el index f77dcec3663..f3996900aee 100644 --- a/lisp/net/tramp-archive.el +++ b/lisp/net/tramp-archive.el | |||
| @@ -585,7 +585,8 @@ offered." | |||
| 585 | ;; This is used in GNU ELPA package tramp-locproc.el. | 585 | ;; This is used in GNU ELPA package tramp-locproc.el. |
| 586 | (defun tramp-archive-local-file-name (filename) | 586 | (defun tramp-archive-local-file-name (filename) |
| 587 | "Return local mount name of FILENAME." | 587 | "Return local mount name of FILENAME." |
| 588 | (tramp-gvfs-local-file-name (tramp-archive-gvfs-file-name filename))) | 588 | (let ((tramp-methods (cons `(,tramp-archive-method) tramp-methods))) |
| 589 | (tramp-gvfs-local-file-name (tramp-archive-gvfs-file-name filename)))) | ||
| 589 | 590 | ||
| 590 | 591 | ||
| 591 | ;; File name primitives. | 592 | ;; File name primitives. |
diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el index 7b82195ed68..32f39070971 100644 --- a/lisp/net/tramp-sh.el +++ b/lisp/net/tramp-sh.el | |||
| @@ -3150,8 +3150,6 @@ will be used." | |||
| 3150 | (when filter | 3150 | (when filter |
| 3151 | (set-process-filter p filter)) | 3151 | (set-process-filter p filter)) |
| 3152 | (process-put p 'remote-command orig-command) | 3152 | (process-put p 'remote-command orig-command) |
| 3153 | (tramp-set-connection-property | ||
| 3154 | p "remote-command" orig-command) | ||
| 3155 | ;; Set query flag and process marker for this | 3153 | ;; Set query flag and process marker for this |
| 3156 | ;; process. We ignore errors, because the | 3154 | ;; process. We ignore errors, because the |
| 3157 | ;; process could have finished already. | 3155 | ;; process could have finished already. |
diff --git a/lisp/net/tramp-smb.el b/lisp/net/tramp-smb.el index 8d090a6969f..87702d90665 100644 --- a/lisp/net/tramp-smb.el +++ b/lisp/net/tramp-smb.el | |||
| @@ -1476,9 +1476,7 @@ PRESERVE-UID-GID and PRESERVE-EXTENDED-ATTRIBUTES are completely ignored." | |||
| 1476 | (tramp-send-string v command))) | 1476 | (tramp-send-string v command))) |
| 1477 | (setq p (tramp-get-connection-process v)) | 1477 | (setq p (tramp-get-connection-process v)) |
| 1478 | (when program | 1478 | (when program |
| 1479 | (process-put p 'remote-command (cons program args)) | 1479 | (process-put p 'remote-command (cons program args))) |
| 1480 | (tramp-set-connection-property | ||
| 1481 | p "remote-command" (cons program args))) | ||
| 1482 | ;; Return value. | 1480 | ;; Return value. |
| 1483 | p))) | 1481 | p))) |
| 1484 | 1482 | ||
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index 03e12471176..ea44a61be19 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el | |||
| @@ -5294,7 +5294,6 @@ should be set connection-local.") | |||
| 5294 | ;; so we reset it. | 5294 | ;; so we reset it. |
| 5295 | (set-process-query-on-exit-flag p (null noquery)) | 5295 | (set-process-query-on-exit-flag p (null noquery)) |
| 5296 | (process-put p 'remote-command orig-command) | 5296 | (process-put p 'remote-command orig-command) |
| 5297 | (tramp-set-connection-property p "remote-command" orig-command) | ||
| 5298 | (when (bufferp stderr) | 5297 | (when (bufferp stderr) |
| 5299 | (tramp-taint-remote-process-buffer stderr)) | 5298 | (tramp-taint-remote-process-buffer stderr)) |
| 5300 | 5299 | ||