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:20:38 +0300 Message-ID: <83d0x2wrll.fsf@gnu.org> References: <83wovgd2aj.fsf@gnu.org> <87po163v65.fsf@web.de> <83in6yarhe.fsf@gnu.org> <877encq5co.fsf@web.de> <838t7sabds.fsf@gnu.org> <87muw8k4dk.fsf@web.de> <83zi08vufl.fsf@gnu.org> <87vaav8q6h.fsf@web.de> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1528384776 12908 195.159.176.226 (7 Jun 2018 15:19:36 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 7 Jun 2018 15:19:36 +0000 (UTC) Cc: radon.neon@gmail.com, 31692@debbugs.gnu.org To: Michael Heerdegen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jun 07 17:19:31 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 1fQwhH-0003Fp-Fi for geb-bug-gnu-emacs@m.gmane.org; Thu, 07 Jun 2018 17:19:31 +0200 Original-Received: from localhost ([::1]:58566 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fQwjO-0001PY-7j for geb-bug-gnu-emacs@m.gmane.org; Thu, 07 Jun 2018 11:21:42 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56484) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fQwip-00019n-Qr for bug-gnu-emacs@gnu.org; Thu, 07 Jun 2018 11:21:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fQwil-000806-79 for bug-gnu-emacs@gnu.org; Thu, 07 Jun 2018 11:21:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:58648) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fQwil-0007zm-3E for bug-gnu-emacs@gnu.org; Thu, 07 Jun 2018 11:21:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fQwik-0007Jr-Ta for bug-gnu-emacs@gnu.org; Thu, 07 Jun 2018 11:21:02 -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:21:02 +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.152838484928090 (code B ref 31692); Thu, 07 Jun 2018 15:21:02 +0000 Original-Received: (at 31692) by debbugs.gnu.org; 7 Jun 2018 15:20:49 +0000 Original-Received: from localhost ([127.0.0.1]:38311 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fQwiX-0007J0-LW for submit@debbugs.gnu.org; Thu, 07 Jun 2018 11:20:49 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:37158) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fQwiW-0007Il-L9 for 31692@debbugs.gnu.org; Thu, 07 Jun 2018 11:20:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fQwiN-0007oH-KQ for 31692@debbugs.gnu.org; Thu, 07 Jun 2018 11:20:43 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:56560) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fQwiN-0007oD-Gd; Thu, 07 Jun 2018 11:20:39 -0400 Original-Received: from [176.228.60.248] (port=3751 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fQwiM-0005ot-VI; Thu, 07 Jun 2018 11:20:39 -0400 In-reply-to: <87vaav8q6h.fsf@web.de> (message from Michael Heerdegen on Thu, 07 Jun 2018 01:12:54 +0200) 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:147139 Archived-At: > From: Michael Heerdegen > Cc: radon.neon@gmail.com, 31692@debbugs.gnu.org > Date: Thu, 07 Jun 2018 01:12:54 +0200 > > An automatic indent mode is a good example: you potentially want > re-indenting after any editing operation, but it is potentially slow and > would cause delays. Using `while-no-input' let's you interrupt the > indentation operation and continue typing. If you later make a long > enough typing pause, indentation will finish. The `sit-for' is there to > avoid that indenting fires immediately after hitting a key, so that > interrupts are less common. If this is the problem to solve, then why not something like below? (if (sit-for 3) (while-no-input (do-something-longish))) IOW, what I don't understand is why put sit-for, which returns as soon as there's input, inside while-no-input, which does something similar, but using a radically different method?