diff options
| author | Juri Linkov | 2022-11-02 20:22:10 +0200 |
|---|---|---|
| committer | Juri Linkov | 2022-11-02 20:22:10 +0200 |
| commit | 969d71d11c62ae085f094a96ecea2fb504bb4602 (patch) | |
| tree | cf3b586f681fbe0441989874064ea9bcacb2371c | |
| parent | 62d40f27b2467a5eeaefec37fea305bda54f6524 (diff) | |
| download | emacs-969d71d11c62ae085f094a96ecea2fb504bb4602.tar.gz emacs-969d71d11c62ae085f094a96ecea2fb504bb4602.zip | |
Add the parameter :noquery to open-network-stream (bug#58948)
* doc/lispref/processes.texi (Network): Add :noquery for open-network-stream.
* lisp/net/network-stream.el (open-network-stream): Pass the
parameter :noquery to make-network-process. Doc fix.
* lisp/progmodes/eglot.el (eglot--connect): Pass `:noquery t' to
eglot--inferior-bootstrap to use in open-network-stream call, like
`:noquery t' is passed to make-process in other places.
| -rw-r--r-- | doc/lispref/processes.texi | 4 | ||||
| -rw-r--r-- | lisp/net/network-stream.el | 4 | ||||
| -rw-r--r-- | lisp/progmodes/eglot.el | 3 |
3 files changed, 10 insertions, 1 deletions
diff --git a/doc/lispref/processes.texi b/doc/lispref/processes.texi index da8df968541..adc6909aca6 100644 --- a/doc/lispref/processes.texi +++ b/doc/lispref/processes.texi | |||
| @@ -2585,6 +2585,10 @@ that are mainly relevant to encrypted connections: | |||
| 2585 | @item :nowait @var{boolean} | 2585 | @item :nowait @var{boolean} |
| 2586 | If non-@code{nil}, try to make an asynchronous connection. | 2586 | If non-@code{nil}, try to make an asynchronous connection. |
| 2587 | 2587 | ||
| 2588 | @item :noquery @var{query-flag} | ||
| 2589 | Initialize the process query flag to @var{query-flag}. | ||
| 2590 | @xref{Query Before Exit}. | ||
| 2591 | |||
| 2588 | @item :coding @var{coding} | 2592 | @item :coding @var{coding} |
| 2589 | Use this to set the coding systems used by the network process, in | 2593 | Use this to set the coding systems used by the network process, in |
| 2590 | preference to binding @code{coding-system-for-read} or | 2594 | preference to binding @code{coding-system-for-read} or |
diff --git a/lisp/net/network-stream.el b/lisp/net/network-stream.el index 38a5e14c946..2b7e5393923 100644 --- a/lisp/net/network-stream.el +++ b/lisp/net/network-stream.el | |||
| @@ -173,6 +173,9 @@ a greeting from the server. | |||
| 173 | :nowait, if non-nil, says the connection should be made | 173 | :nowait, if non-nil, says the connection should be made |
| 174 | asynchronously, if possible. | 174 | asynchronously, if possible. |
| 175 | 175 | ||
| 176 | :noquery - when exiting Emacs and the network process is running, | ||
| 177 | don't query the user if it's non-nil. | ||
| 178 | |||
| 176 | :shell-command is a `format-spec' string that can be used if | 179 | :shell-command is a `format-spec' string that can be used if |
| 177 | :type is `shell'. It has two specs, %s for host and %p for port | 180 | :type is `shell'. It has two specs, %s for host and %p for port |
| 178 | number. Example: \"ssh gateway nc %s %p\". | 181 | number. Example: \"ssh gateway nc %s %p\". |
| @@ -195,6 +198,7 @@ gnutls-boot (as returned by `gnutls-boot-parameters')." | |||
| 195 | (make-network-process :name name :buffer buffer | 198 | (make-network-process :name name :buffer buffer |
| 196 | :host (puny-encode-domain host) :service service | 199 | :host (puny-encode-domain host) :service service |
| 197 | :nowait (plist-get parameters :nowait) | 200 | :nowait (plist-get parameters :nowait) |
| 201 | :noquery (plist-get parameters :noquery) | ||
| 198 | :tls-parameters | 202 | :tls-parameters |
| 199 | (plist-get parameters :tls-parameters) | 203 | (plist-get parameters :tls-parameters) |
| 200 | :coding (plist-get parameters :coding)) | 204 | :coding (plist-get parameters :coding)) |
diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index 0a0d73eb6d2..204121045a0 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el | |||
| @@ -1200,7 +1200,8 @@ This docstring appeases checkdoc, that's all." | |||
| 1200 | (pcase-let ((`(,connection . ,inferior) | 1200 | (pcase-let ((`(,connection . ,inferior) |
| 1201 | (eglot--inferior-bootstrap | 1201 | (eglot--inferior-bootstrap |
| 1202 | readable-name | 1202 | readable-name |
| 1203 | contact))) | 1203 | contact |
| 1204 | '(:noquery t)))) | ||
| 1204 | (setq autostart-inferior-process inferior) | 1205 | (setq autostart-inferior-process inferior) |
| 1205 | connection)))) | 1206 | connection)))) |
| 1206 | ((stringp (car contact)) | 1207 | ((stringp (car contact)) |