From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#19547: 25.0.50; throw-on-input "fires" when switching workspace Date: Fri, 09 Jan 2015 21:59:51 +0200 Message-ID: <83387j67yg.fsf@gnu.org> References: <874ms03qj1.fsf@web.de> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1420833619 24405 80.91.229.3 (9 Jan 2015 20:00:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 9 Jan 2015 20:00:19 +0000 (UTC) Cc: 19547@debbugs.gnu.org To: michael_heerdegen@web.de Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jan 09 21:00:13 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Y9fjA-0001re-Gc for geb-bug-gnu-emacs@m.gmane.org; Fri, 09 Jan 2015 21:00:12 +0100 Original-Received: from localhost ([::1]:52027 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y9fj9-0005MQ-W5 for geb-bug-gnu-emacs@m.gmane.org; Fri, 09 Jan 2015 15:00:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44248) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y9fj6-0005KC-3c for bug-gnu-emacs@gnu.org; Fri, 09 Jan 2015 15:00:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y9fj2-00041h-G3 for bug-gnu-emacs@gnu.org; Fri, 09 Jan 2015 15:00:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59982) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y9fj2-00040t-Be for bug-gnu-emacs@gnu.org; Fri, 09 Jan 2015 15:00:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Y9fj1-0002ZV-MB for bug-gnu-emacs@gnu.org; Fri, 09 Jan 2015 15:00:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 09 Jan 2015 20:00:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19547 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 19547-submit@debbugs.gnu.org id=B19547.14208335789822 (code B ref 19547); Fri, 09 Jan 2015 20:00:03 +0000 Original-Received: (at 19547) by debbugs.gnu.org; 9 Jan 2015 19:59:38 +0000 Original-Received: from localhost ([127.0.0.1]:41115 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y9fic-0002YK-55 for submit@debbugs.gnu.org; Fri, 09 Jan 2015 14:59:38 -0500 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:47703) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y9fiZ-0002YB-LT for 19547@debbugs.gnu.org; Fri, 09 Jan 2015 14:59:37 -0500 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0NHX00M00DO9NT00@a-mtaout20.012.net.il> for 19547@debbugs.gnu.org; Fri, 09 Jan 2015 21:59:33 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NHX00MMQE79FPA0@a-mtaout20.012.net.il>; Fri, 09 Jan 2015 21:59:33 +0200 (IST) In-reply-to: <874ms03qj1.fsf@web.de> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:98137 Archived-At: > From: Michael Heerdegen > Date: Fri, 09 Jan 2015 16:46:58 +0100 > > (catch 'tag > (let ((throw-on-input 'tag)) > (while t))) > > and switch to a different (X) workspace. The loop is exited > immediately. > > I don't think it is useful to count switching workspaces as input. I > hope we can change this. > > Some background: in Helm, we use `while-no-input' around the code > performing the matching against the candidates. This way, we can > immediately react when new input arrives - we avoid a delay caused by > finishing matching candidates against an obsolete input pattern. > > But currently, when you switch to a different workspace while matching > is performed, Helm stops matching. > > Of course we could work around this and restart matching anew in such a > case, but it would be better if switching desktops would not tangle > Emacs at all. It is counter-intuitive, at least in this scenario. The > doc of throw-on-input only speaks about "keyboard input". Documentation problems aside, you can't usefully define which events will be considered as input and which won't, in a way that would DTRT for everyone. The decision is specific to the application, and while-no-input cannot know that. It could be that this particular event can be filtered out, but that's just the top of the iceberg. There are way too many different events flowing into Emacs on a typical modern system, keyboard being just a small part of that.