From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Spencer Baugh Newsgroups: gmane.emacs.bugs Subject: bug#63865: 29.0.90; call-process while owning the X selection hangs other processes Date: Sat, 03 Jun 2023 11:34:44 -0400 Message-ID: References: <83edmt9j8i.fsf@gnu.org> <87bkhxnhpk.fsf@yahoo.com> <87wn0kn3zu.fsf@yahoo.com> <83mt1g9044.fsf@gnu.org> <83leh08xmn.fsf@gnu.org> <83a5xg8vzo.fsf@gnu.org> <835y848u7s.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29909"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: luangruo@yahoo.com, 63865@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jun 03 17:35:27 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1q5THp-0007Us-Qn for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 03 Jun 2023 17:35:25 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q5THU-0005In-KL; Sat, 03 Jun 2023 11:35:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q5THT-0005IN-4Y for bug-gnu-emacs@gnu.org; Sat, 03 Jun 2023 11:35:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q5THS-0002Gv-RI for bug-gnu-emacs@gnu.org; Sat, 03 Jun 2023 11:35:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q5THS-0000eW-Au for bug-gnu-emacs@gnu.org; Sat, 03 Jun 2023 11:35:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Spencer Baugh Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 03 Jun 2023 15:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63865 X-GNU-PR-Package: emacs Original-Received: via spool by 63865-submit@debbugs.gnu.org id=B63865.16858064952490 (code B ref 63865); Sat, 03 Jun 2023 15:35:02 +0000 Original-Received: (at 63865) by debbugs.gnu.org; 3 Jun 2023 15:34:55 +0000 Original-Received: from localhost ([127.0.0.1]:44136 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q5THK-0000e5-KM for submit@debbugs.gnu.org; Sat, 03 Jun 2023 11:34:54 -0400 Original-Received: from mxout5.mail.janestreet.com ([64.215.233.18]:59549) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q5THG-0000ds-Kc for 63865@debbugs.gnu.org; Sat, 03 Jun 2023 11:34:53 -0400 In-Reply-To: <835y848u7s.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 03 Jun 2023 18:02:31 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:262864 Archived-At: Eli Zaretskii writes: >> I would be happy with a targeted, specific fix for the bad behavior I >> reported. >> >> Here's a specific instance that would be good to fix: If I run "M-! >> sleep 30 RET", that will cause some applications to hang while Emacs is >> waiting on the sleep; sometimes (as with Slack) without user >> interaction, or sometimes only if the user tries to paste in them. Do >> you have a suggestion on how to fix that? > > No, I don't. And I explained why at the very beginning. I invite you > to read xselect.c and see what kind of processing we do there to > handle selection requests. What about a new version of call-process, maybe "call-process-allow-lisp", which doesn't stop timers/process filters/Lisp/etc from running while Emacs is blocked in it? Then any caller which doesn't want to stop Lisp from running while they are waiting for the subprocess can use "call-process-allow-lisp" instead of "call-process". I can implement that if it sounds desirable. I can also send a mail to emacs-devel if you want more discussion of it beforehand.