From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#45117: 28.0.50; process-send-string mysteriously exiting non-locally when called from timer Date: Thu, 10 Dec 2020 22:14:01 +0200 Message-ID: <83r1nx2zcm.fsf@gnu.org> References: <87h7ow4j4o.fsf@gmail.com> <83mtyo71dh.fsf@gnu.org> <877dps47ge.fsf@gmail.com> <83360g6xlt.fsf@gnu.org> <87im9b2pds.fsf@gmail.com> <83k0tr5700.fsf@gnu.org> <87360d3dud.fsf@gmail.com> <83eejx4rd6.fsf@gnu.org> <87r1nx1vtd.fsf@gmail.com> <87mtyl1v6y.fsf@gmail.com> <87h7ot1ona.fsf@gmail.com> <83v9d930pv.fsf@gnu.org> <83sg8d3085.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12901"; mail-complaints-to="usenet@ciao.gmane.io" Cc: monnier@iro.umontreal.ca, 45117@debbugs.gnu.org To: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 10 21:23:32 2020 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 1knSTL-0003Eb-RS for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 10 Dec 2020 21:23:31 +0100 Original-Received: from localhost ([::1]:37280 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1knSTK-0004Vj-Cl for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 10 Dec 2020 15:23:30 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39972) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1knSL9-0007zb-Fs for bug-gnu-emacs@gnu.org; Thu, 10 Dec 2020 15:15:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56057) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1knSL8-0001A6-8B for bug-gnu-emacs@gnu.org; Thu, 10 Dec 2020 15:15:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1knSL8-0008Ed-3n for bug-gnu-emacs@gnu.org; Thu, 10 Dec 2020 15:15:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 10 Dec 2020 20:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45117 X-GNU-PR-Package: emacs Original-Received: via spool by 45117-submit@debbugs.gnu.org id=B45117.160763127131606 (code B ref 45117); Thu, 10 Dec 2020 20:15:02 +0000 Original-Received: (at 45117) by debbugs.gnu.org; 10 Dec 2020 20:14:31 +0000 Original-Received: from localhost ([127.0.0.1]:39370 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1knSKd-0008Di-00 for submit@debbugs.gnu.org; Thu, 10 Dec 2020 15:14:31 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:46714) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1knSKZ-0008DT-3Z for 45117@debbugs.gnu.org; Thu, 10 Dec 2020 15:14:30 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:47254) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1knSKT-0000ul-DS; Thu, 10 Dec 2020 15:14:21 -0500 Original-Received: from [176.228.60.248] (port=4986 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1knSKS-0001JQ-Kn; Thu, 10 Dec 2020 15:14:21 -0500 In-Reply-To: (message from =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= on Thu, 10 Dec 2020 19:58:12 +0000) 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" Xref: news.gmane.io gmane.emacs.bugs:195698 Archived-At: > From: João Távora > Date: Thu, 10 Dec 2020 19:58:12 +0000 > Cc: Stefan Monnier , 45117@debbugs.gnu.org > > > I think that's the wrong question. The right question is how probable > > is it that the user presses C-g to abort a timer function that just > > happens to run at this very moment. I think the answer is "extremely > > improbable". It is much more probable that C-g was meant for > > something else, some activity that is much more evident to the user. > > Like getting out of the minibuffer after deciding that the command > > does not need to be invoked after all, for example. > > I see. Yes it makes sense. But Stefan is arguing that some "special" timer > functions should be abortable by mere input. That makes sense mainly for idle timers. Or for timer functions that take a lot of time to execute (something that generally shouldn't happen in the first place). But while-no-input cannot abort its caller, so as long as the body of while-no-input can handle being interrupted, that is okay. > And that changes thoses odds considerably. But at the same time, it > doesn't change the fact, as you well put it, that that input is > _not_ meant for the timer function. I think if a timer function should be interruptible by input, that function should itself call while-no-input. It is not the job of outside code to interrupt bad timers by aborting them by these measures.