GNU bug report logs -
#58948
29.0.50; Add :noquery to 'make-network-process' used by eglot
Previous Next
Reported by: Juri Linkov <juri <at> linkov.net>
Date: Tue, 1 Nov 2022 17:58:01 UTC
Severity: normal
Tags: patch
Fixed in version 29.0.50
Done: Juri Linkov <juri <at> linkov.net>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 58948 in the body.
You can then email your comments to 58948 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#58948
; Package
emacs
.
(Tue, 01 Nov 2022 17:58:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Juri Linkov <juri <at> linkov.net>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Tue, 01 Nov 2022 17:58:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Tags: patch
Every time while exiting Emacs, an internal process is displayed and
asked whether to exit.
Eglot already uses `:noquery t' in two places for `make-process',
but can't use the same for `open-network-stream' because it's still unhandled.
Here is the patch that adds it:
[make-network-process-noquery.patch (text/x-diff, inline)]
diff --git a/lisp/net/network-stream.el b/lisp/net/network-stream.el
index 38a5e14c946..c092fd5f012 100644
--- a/lisp/net/network-stream.el
+++ b/lisp/net/network-stream.el
@@ -195,6 +195,7 @@ open-network-stream
(make-network-process :name name :buffer buffer
:host (puny-encode-domain host) :service service
:nowait (plist-get parameters :nowait)
+ :noquery (plist-get parameters :noquery)
:tls-parameters
(plist-get parameters :tls-parameters)
: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 @@ eglot--connect
(pcase-let ((`(,connection . ,inferior)
(eglot--inferior-bootstrap
readable-name
- contact)))
+ contact
+ '(:noquery t))))
(setq autostart-inferior-process inferior)
connection))))
((stringp (car contact))
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#58948
; Package
emacs
.
(Wed, 02 Nov 2022 09:54:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 58948 <at> debbugs.gnu.org (full text, mbox):
>>>>> On Tue, 01 Nov 2022 19:45:42 +0200, Juri Linkov <juri <at> linkov.net> said:
Juri> Tags: patch
Juri> Every time while exiting Emacs, an internal process is displayed and
Juri> asked whether to exit.
Juri> Eglot already uses `:noquery t' in two places for `make-process',
Juri> but can't use the same for `open-network-stream' because it's still unhandled.
Juri> Here is the patch that adds it:
I guess this is ok, although itʼs missing documentation and a commit
message :-)
Iʼm even tempted to say that unrecognized keyword arguments should
just be passed on to `make-network-process' as-is, but thatʼs a bigger
and riskier change.
Robert
--
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#58948
; Package
emacs
.
(Wed, 02 Nov 2022 18:26:03 GMT)
Full text and
rfc822 format available.
Message #11 received at 58948 <at> debbugs.gnu.org (full text, mbox):
close 58948 29.0.50
thanks
> Juri> Tags: patch
> Juri> Every time while exiting Emacs, an internal process is displayed and
> Juri> asked whether to exit.
>
> Juri> Eglot already uses `:noquery t' in two places for `make-process',
> Juri> but can't use the same for `open-network-stream' because it's still unhandled.
> Juri> Here is the patch that adds it:
>
> I guess this is ok, although itʼs missing documentation and a commit
> message :-)
Thanks for reviewing, now pushed with doc changes.
> Iʼm even tempted to say that unrecognized keyword arguments should
> just be passed on to `make-network-process' as-is, but thatʼs a bigger
> and riskier change.
Agreed. Maybe then more parameters of make-network-process
could be copied to open-network-stream manually one by one.
bug marked as fixed in version 29.0.50, send any further explanations to
58948 <at> debbugs.gnu.org and Juri Linkov <juri <at> linkov.net>
Request was from
Juri Linkov <juri <at> linkov.net>
to
control <at> debbugs.gnu.org
.
(Wed, 02 Nov 2022 18:26:04 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 01 Dec 2022 12:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 2 years and 259 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.