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: Re: while-no-input and pending input Date: Wed, 26 Sep 2018 14:50:34 +0200 Message-ID: <87in2sv2w5.fsf@web.de> References: <87sh1y535s.fsf@web.de> <87k1n94gg2.fsf@web.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1537966241 23838 195.159.176.226 (26 Sep 2018 12:50:41 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 26 Sep 2018 12:50:41 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: Emacs Development To: Drew Adams Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 26 14:50:37 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 1g59H2-00067Q-De for ged-emacs-devel@m.gmane.org; Wed, 26 Sep 2018 14:50:36 +0200 Original-Received: from localhost ([::1]:58777 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g59J9-0002PT-3F for ged-emacs-devel@m.gmane.org; Wed, 26 Sep 2018 08:52:47 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56790) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g59HC-00005Y-O0 for emacs-devel@gnu.org; Wed, 26 Sep 2018 08:50:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g59H8-0002Fz-On for emacs-devel@gnu.org; Wed, 26 Sep 2018 08:50:46 -0400 Original-Received: from mout.web.de ([217.72.192.78]:42019) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g59H8-0002Ey-F7 for emacs-devel@gnu.org; Wed, 26 Sep 2018 08:50:42 -0400 Original-Received: from drachen.dragon ([88.67.100.248]) by smtp.web.de (mrweb102 [213.165.67.124]) with ESMTPSA (Nemesis) id 0LfzxX-1fOS4844qp-00pclm; Wed, 26 Sep 2018 14:50:36 +0200 In-Reply-To: (Drew Adams's message of "Tue, 25 Sep 2018 10:53:36 -0700 (PDT)") X-Provags-ID: V03:K1:FwcMJeq/6tspzzjCzD+kriGzzHMOm7awmD2iztqrTzsKX042l5x dS0kEd6OU3o/OhUSJSjkeIlwsryba5s5iJ59g0ItxxhowlUcZWFdJvBmvWAMgEtaa1HHxTo JceBDFgipo+QBeBow2OgjMWuvsdkkrwTns2PmMfnYpIsof04yMmW06IkwigYBMVJPUT5fLK Lpt7ja5azBnirPPp1qSAA== X-UI-Out-Filterresults: notjunk:1;V01:K0:tTuw+8B9aNE=:EiBOJ1pjmDa4Zi1nsCO1A5 CeB+EFm9sGRQZIfq1cYQBU+4fDeBhbpmP6vSc4eJzODhqK9qIycSTTkmGo9okldPsti9HzA0L MzFxEIQ+PU9i+ifuDRciIDiVvGQ6dYQpEVS3T9bH4JfkJOXghgWL0XJVaGWoAOU6XNWG6bv6O z7cBJpNMSk9c/dEEx3l5QZ9GsB9vJiV3k78tUz3UrdH4fl6UY5KG1z7ej3ZZ5NgoXOr67Kiyd 7vF1ADjgXFa583/hGmuxdU4aPCM/Z5IqZkT4uu1SoZ+kLl4uZof6AEH45lAsiRWTxNonkORQs JCumNB6DDYsSL2uRt1LYO8pynaFF1BsG0hgCKzkmKivHgSfQKKK7dEw355TjSvw5gnu3WWYJs cDwfcryZMueIKcTid1PLDBt82aF1VFpU+O1NGed3CIQOgYLc8LeGih0ipeDk5yGAkoUlNJ12R JnP/+2Z9IV+r/mcYyzsZf9rSnZa49nEv7FfwP/Ablb5P6E878grt78hzbX1ZIgZE6RoZCwVvb 8dmz9zGAghthhrUVZG/4SYGAAHTCls8eVnVjasvofY/IOpmZpLnJTeHbOa5a8WRauQfcj02TE zIPGK3WbjyiATsghYFA4H5vY06pTwAQ+jzhKVqvqEzChtsXgHoPBqOp/OfqMN42/fB8s2m3hq HNBG6vFoQHWH4gnsviieKDep1llzXv5xU4CXO/dVGV5o/K+gwNVaerJdxOm0ao9dzSDARDpiG JGwhx9m3zJyko/jSBpLLQyN6xnBzNpOklSMPFHt2/GGPA6ruI1jZZ7n59oXV4OlBESBjb0ao X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 217.72.192.78 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:230083 Archived-At: Drew Adams writes: > Dunno whether this helps or whether it's a good idea, but this is what > I do: > > (defun icicle-skip-this-command () > "Prevent `handle-switch-frame' from being added to `this-command'." > (interactive) > (setq this-command last-command)) > > (defun icicle-handle-switch-frame (event) > "Call `handle-switch-frame', but don't add it to `this-command'." > (interactive "e") > (handle-switch-frame event) > (setq this-command last-command)) > > (define-key global-map [handle-switch-frame] 'icicle-skip-this-command) > (define-key global-map [switch-frame] 'icicle-handle-switch-frame)) Thanks for sharing. But it doesn't help in this case. The problem is that the event gets in the way, not how it is processed. Michael.