From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#31692: Emacs sometimes drops key events Date: Thu, 07 Jun 2018 18:52:49 +0300 Message-ID: <83602uwq3y.fsf@gnu.org> References: <83wovgd2aj.fsf@gnu.org> <87po163v65.fsf@web.de> <83in6yarhe.fsf@gnu.org> <877encq5co.fsf@web.de> <8336y0x9c3.fsf@gnu.org> <87zi078r8n.fsf@web.de> <83efhiwrmj.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1528388000 22498 195.159.176.226 (7 Jun 2018 16:13:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 7 Jun 2018 16:13:20 +0000 (UTC) Cc: michael_heerdegen@web.de, radon.neon@gmail.com, 31692@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jun 07 18:13:15 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fQxXG-0005iX-2P for geb-bug-gnu-emacs@m.gmane.org; Thu, 07 Jun 2018 18:13:14 +0200 Original-Received: from localhost ([::1]:58947 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fQxZM-00021R-U0 for geb-bug-gnu-emacs@m.gmane.org; Thu, 07 Jun 2018 12:15:25 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39795) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fQxEk-0004Wa-Lv for bug-gnu-emacs@gnu.org; Thu, 07 Jun 2018 11:54:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fQxEg-0005GJ-1V for bug-gnu-emacs@gnu.org; Thu, 07 Jun 2018 11:54:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:58692) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fQxEf-0005GB-TU for bug-gnu-emacs@gnu.org; Thu, 07 Jun 2018 11:54:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fQxEf-00086v-N2 for bug-gnu-emacs@gnu.org; Thu, 07 Jun 2018 11:54:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 07 Jun 2018 15:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31692 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 31692-submit@debbugs.gnu.org id=B31692.152838678231108 (code B ref 31692); Thu, 07 Jun 2018 15:54:01 +0000 Original-Received: (at 31692) by debbugs.gnu.org; 7 Jun 2018 15:53:02 +0000 Original-Received: from localhost ([127.0.0.1]:38356 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fQxDi-00085g-Gq for submit@debbugs.gnu.org; Thu, 07 Jun 2018 11:53:02 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:48563) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fQxDg-00085C-Tl for 31692@debbugs.gnu.org; Thu, 07 Jun 2018 11:53:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fQxDX-0004fZ-3I for 31692@debbugs.gnu.org; Thu, 07 Jun 2018 11:52:55 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:57095) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fQxDW-0004fQ-VN; Thu, 07 Jun 2018 11:52:51 -0400 Original-Received: from [176.228.60.248] (port=3799 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fQxDW-0006Pr-Dn; Thu, 07 Jun 2018 11:52:50 -0400 In-reply-to: (message from Stefan Monnier on Thu, 07 Jun 2018 11:30:58 -0400) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:147143 Archived-At: > From: Stefan Monnier > Cc: Michael Heerdegen , radon.neon@gmail.com, > 31692@debbugs.gnu.org > Date: Thu, 07 Jun 2018 11:30:58 -0400 > > I don't understand the (throw 'throw-on-input t) > (throw throw-on-input t) would make more sense, but in any case we're > just about to exit that `catch` so throwing won't have any real effect. I hoped the comment explained that, but evidently not. > I think instead of (throw 'throw-on-input t) what is needed here is > > (setq quit-flag nil) > > which will also make the body return nil (rather than t like (throw > throw-on-input t) would), which I believe is also the right thing. I believe we need to return t here, because input did arrive. We could indeed just return t instead of throwing, but that's not the main issue for which I wanted your opinion.