aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ingebrigtsen2017-01-26 19:41:56 +0100
committerLars Ingebrigtsen2017-01-26 19:46:27 +0100
commitd32623f040272d9c3bc46b2b1b37c986e7fb8bf1 (patch)
treec064e8689e1390e62bc5b02ef8a48d39cceef259
parent079b6bebcbf4d556c8d45a667d8e95dcb350dc3f (diff)
downloademacs-d32623f040272d9c3bc46b2b1b37c986e7fb8bf1.tar.gz
emacs-d32623f040272d9c3bc46b2b1b37c986e7fb8bf1.zip
Document :shell-command in `make-network-process'
* doc/lispref/processes.texi (Network): Document :shell-command. * lisp/net/network-stream.el (open-network-stream): Document the :shell-command parameter (bug#20651).
-rw-r--r--doc/lispref/processes.texi8
-rw-r--r--lisp/net/network-stream.el4
2 files changed, 12 insertions, 0 deletions
diff --git a/doc/lispref/processes.texi b/doc/lispref/processes.texi
index 014a0aed913..58e04a311a1 100644
--- a/doc/lispref/processes.texi
+++ b/doc/lispref/processes.texi
@@ -2414,6 +2414,14 @@ If non-@code{nil}, the host's capability string.
2414The connection type: @samp{plain} or @samp{tls}. 2414The connection type: @samp{plain} or @samp{tls}.
2415@end table 2415@end table
2416 2416
2417@item :shell-command @var{string-or-nil}
2418If the connection @code{type} is @code{shell}, this parameter will be
2419interpreted as a format-spec string that will be executed to make the
2420connection. The specs available are @samp{%s} for the host name and
2421@samp{%p} for the port number. For instance, if you want to first ssh
2422to @samp{gateway} before making a plain connection, then this
2423parameter could be something like @samp{ssh gateway nc %s %p}.
2424
2417@end table 2425@end table
2418 2426
2419@end defun 2427@end defun
diff --git a/lisp/net/network-stream.el b/lisp/net/network-stream.el
index 93e1bae5fc2..bf60eee673c 100644
--- a/lisp/net/network-stream.el
+++ b/lisp/net/network-stream.el
@@ -139,6 +139,10 @@ a greeting from the server.
139:nowait, if non-nil, says the connection should be made 139:nowait, if non-nil, says the connection should be made
140asynchronously, if possible. 140asynchronously, if possible.
141 141
142:shell-command is a format-spec string that can be used if :type
143is `shell'. It has two specs, %s for host and %p for port
144number. Example: \"ssh gateway nc %s %p\".
145
142:tls-parameters is a list that should be supplied if you're 146:tls-parameters is a list that should be supplied if you're
143opening a TLS connection. The first element is the TLS 147opening a TLS connection. The first element is the TLS
144type (either `gnutls-x509pki' or `gnutls-anon'), and the 148type (either `gnutls-x509pki' or `gnutls-anon'), and the