From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.devel Subject: while-no-input and pending input (was: while-no-input interrupted by *shell*) Date: Tue, 25 Sep 2018 19:47:41 +0200 Message-ID: <87k1n94gg2.fsf@web.de> References: <87sh1y535s.fsf@web.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1537897551 7605 195.159.176.226 (25 Sep 2018 17:45:51 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 25 Sep 2018 17:45:51 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: Emacs Development Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 25 19:45:47 2018 Return-path: Envelope-to: ged-emacs-devel@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 1g4rP8-0001sf-97 for ged-emacs-devel@m.gmane.org; Tue, 25 Sep 2018 19:45:46 +0200 Original-Received: from localhost ([::1]:54573 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g4rRE-0008Hy-V9 for ged-emacs-devel@m.gmane.org; Tue, 25 Sep 2018 13:47:56 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47342) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g4rR8-0008Hs-9b for emacs-devel@gnu.org; Tue, 25 Sep 2018 13:47:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g4rR4-0002Sr-6x for emacs-devel@gnu.org; Tue, 25 Sep 2018 13:47:50 -0400 Original-Received: from mout.web.de ([212.227.15.14]:57227) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g4rR3-0002S5-Sf for emacs-devel@gnu.org; Tue, 25 Sep 2018 13:47:46 -0400 Original-Received: from drachen.dragon ([88.67.100.248]) by smtp.web.de (mrweb003 [213.165.67.108]) with ESMTPSA (Nemesis) id 0Lj2Cs-1fU9lh2jza-00dByM; Tue, 25 Sep 2018 19:47:43 +0200 In-Reply-To: <87sh1y535s.fsf@web.de> (Michael Heerdegen's message of "Mon, 24 Sep 2018 17:24:47 +0200") X-Provags-ID: V03:K1:OZiThDRE3Cu6PPGUTNwKAAs3U/84foxa6m+ndEOd0B+OqWcxhoB NpDUdXKipI++NxlJ20ugdxg5pS3rbtuzcT8Z24R2+KMUzBVVfTOLSEVdffh9sASBVZ/K1cp nd6O0NZojYNaLGXycFOz/E7qlOe28biiDBWd6pq/Nsc2BIYeJfblWD03etbdDJQV5AyrA6D hkGlk2Hp0Sf5enUv8s+/Q== X-UI-Out-Filterresults: notjunk:1;V01:K0:X2ATQ4QwYl8=:VBIRUN9WtOkIugUok2Q/iF S6X94ZRo7O7BLRQFbByK2TUXgZwYBPjHh3Wl5Bsp5r5GDa99JiJZvSsNJfgOgIJ8S6PhTY+Ip jCCEQwSVbFXgeJgYkHARNb/kUA8ZzLnDtSgsCoK3ZLkBGoqJuZOnk9xwt7lahTsY485osDANw HM92goiJs2FztcZIE4Md/8vwN1zmMOBNWK1ux3z80Z+tSZ1UXgVA4FjzDG8xWAB+6/Xfpp1iF nhm3d3RkBSOpziXpXS2yVR1RTWyy7+eLP/D/CTsMuODl2yLU0JOGfPNpi3rcCRL8Kw9/5zkwk eqIpyubmyMkEt+eFqU+M0jzDJByVQcpjka5pE21gOHCx+o+2srMHY1t5cs3jlz4O+QBm7dAMN xoi2BiK63QwN+e9tvoNNN8yliSkUx996DwZQY20SU/AFMRxGReX0MX1V6YYUIaI3teJ8KpTdk jBq56NkTSAHdY+qkUWom3zATN0heS7cK12v9wVTxlYvuBwbss9TAY3g2pxHrPOmEiwjxaLE10 Tr869+Y6yjFFWsqbi9hiPq8qJdjb4qlZyt6d4T+r2jo3zkEAqjb0UIJ9UVgWsAo946UwShqXW 9TMT/6A1y1SSBY5bxkByswshQueovlEJ37ahNp0myXRanIqbKaAf826g9xjF1ALRKirhgB+49 dLWiV0yIx20n1khN+gOSb9w/VHiZ6s5CZW+dhF3ndvXRoXxN91+RX46SySgoqKecIJWWK+aqg M+wNDpt0iKujPM0QB2N2D+dfyVgFF0XmnO7DfYZ7ZbZG+F0wJAkPghF5iq3IW9w3OBcZdIik X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.15.14 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:230068 Archived-At: Hello again, I ran into other trouble with `while-no-input': A command I use - it calls w-n-i to generate feedback for the echo area unless the user hits a key - sometimes needs to select a different frame. AFAIK this generates an event and w-n-i then does nothing because of its implicit `input-pending-p' test. Using a modified version of w-n-i with the input-pending-p test removed solves the problem, but that's not good because (1) I have to duplicate the definition of w-n-i in my code (it's what Helm does btw.) and (2) hmm, can doing this have downsides? What could I else do in this situation to prevent the frame switch or whatever event to be misinterpreted as user input? Could/should w-n-i generally ignore events in `while-no-input-ignore-events' - I mean, also the input-pending-p part? Thanks, Michael.