diff options
| author | Michael Albinus | 2024-11-03 15:48:19 +0100 |
|---|---|---|
| committer | Michael Albinus | 2024-11-03 15:48:19 +0100 |
| commit | 03fa832b4dcc47276894d90f3323bca31eb0633e (patch) | |
| tree | 95e9c991bde34f3b4571e0b86431e989bd8aed99 | |
| parent | f7b85fe986e74b649f8148ee407cf7a2327ff4a9 (diff) | |
| download | emacs-03fa832b4dcc47276894d90f3323bca31eb0633e.tar.gz emacs-03fa832b4dcc47276894d90f3323bca31eb0633e.zip | |
Improve Tramp documentation on direct async processes
* doc/misc/tramp.texi (Remote processes): Add another example
enabling direct async processes based on method name. (Bug#74105)
* etc/NEWS: Rephrase Tramp entry on direct async processes.
| -rw-r--r-- | doc/misc/tramp.texi | 12 | ||||
| -rw-r--r-- | etc/NEWS | 10 |
2 files changed, 18 insertions, 4 deletions
diff --git a/doc/misc/tramp.texi b/doc/misc/tramp.texi index 69572a139ff..9895b3c6fce 100644 --- a/doc/misc/tramp.texi +++ b/doc/misc/tramp.texi | |||
| @@ -4549,6 +4549,18 @@ which must be set to a non-@code{nil} value. Example: | |||
| 4549 | @end group | 4549 | @end group |
| 4550 | @end lisp | 4550 | @end lisp |
| 4551 | 4551 | ||
| 4552 | This enables direct async processes for the host @samp{remotehost}. | ||
| 4553 | If you want to enable direct async processes for all remote hosts | ||
| 4554 | connected via the same method (e.g., @option{ssh}), use instead | ||
| 4555 | |||
| 4556 | @lisp | ||
| 4557 | @group | ||
| 4558 | (connection-local-set-profiles | ||
| 4559 | '(:application tramp :protocol "ssh") | ||
| 4560 | 'remote-direct-async-process) | ||
| 4561 | @end group | ||
| 4562 | @end lisp | ||
| 4563 | |||
| 4552 | Using direct asynchronous processes in @value{tramp} is not possible, | 4564 | Using direct asynchronous processes in @value{tramp} is not possible, |
| 4553 | if the remote host is connected via multiple hops | 4565 | if the remote host is connected via multiple hops |
| 4554 | (@pxref{Multi-hops}). In this case, @value{tramp} falls back to its | 4566 | (@pxref{Multi-hops}). In this case, @value{tramp} falls back to its |
| @@ -1413,10 +1413,12 @@ method but "sudo" can be configured with user option | |||
| 1413 | +++ | 1413 | +++ |
| 1414 | *** Direct asynchronous processes are indicated by a connection-local variable. | 1414 | *** Direct asynchronous processes are indicated by a connection-local variable. |
| 1415 | If direct asynchronous processes shall be used, set the connection-local | 1415 | If direct asynchronous processes shall be used, set the connection-local |
| 1416 | variable 'tramp-direct-async-process' to a non-nil value. This has been | 1416 | variable 'tramp-direct-async-process' to a non-nil value. In previous |
| 1417 | changed, in previous Emacs versions this was indicated by the now | 1417 | Emacs versions this was indicated by the connection property |
| 1418 | deprecated connection property "direct-async-process". See the Tramp | 1418 | "direct-async-process". That connection property (though not connection |
| 1419 | manual "(tramp) Improving performance of asynchronous remote processes". | 1419 | properties and 'tramp-connection-properties' in general) is now |
| 1420 | deprecated. See the Tramp manual "(tramp) Improving performance of | ||
| 1421 | asynchronous remote processes". | ||
| 1420 | 1422 | ||
| 1421 | --- | 1423 | --- |
| 1422 | *** Direct asynchronous processes use 'tramp-remote-path'. | 1424 | *** Direct asynchronous processes use 'tramp-remote-path'. |