From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.bugs Subject: bug#22068: 25.0.50; Delayed reaction to switching frames? Date: Thu, 03 Dec 2015 08:41:32 +0100 Message-ID: <874mg0x9lf.fsf@fencepost.gnu.org> References: <87lh9et87o.fsf@fencepost.gnu.org> <565EAA66.70002@gmx.at> <87h9k1s0ng.fsf@fencepost.gnu.org> <565EC271.1030201@gmx.at> <83fuzlj6zs.fsf@gnu.org> <565F2DEA.4050906@gmx.at> <837fkwka4d.fsf@gnu.org> <565F3445.9080903@gmx.at> <87k2owr5bh.fsf@fencepost.gnu.org> <83y4dchu71.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1449128549 449 80.91.229.3 (3 Dec 2015 07:42:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 3 Dec 2015 07:42:29 +0000 (UTC) Cc: 22068@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Dec 03 08:42:19 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 1a4OWl-0005Oj-9D for geb-bug-gnu-emacs@m.gmane.org; Thu, 03 Dec 2015 08:42:07 +0100 Original-Received: from localhost ([::1]:33803 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a4OWk-0006Fu-CE for geb-bug-gnu-emacs@m.gmane.org; Thu, 03 Dec 2015 02:42:06 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41962) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a4OWh-0006Fc-0w for bug-gnu-emacs@gnu.org; Thu, 03 Dec 2015 02:42:03 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a4OWg-0005Pt-0P for bug-gnu-emacs@gnu.org; Thu, 03 Dec 2015 02:42:02 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:47126) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a4OWf-0005Pp-TE for bug-gnu-emacs@gnu.org; Thu, 03 Dec 2015 02:42:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1a4OWf-0007Wq-Oh for bug-gnu-emacs@gnu.org; Thu, 03 Dec 2015 02:42:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: David Kastrup Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 03 Dec 2015 07:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22068 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22068-submit@debbugs.gnu.org id=B22068.144912851528928 (code B ref 22068); Thu, 03 Dec 2015 07:42:01 +0000 Original-Received: (at 22068) by debbugs.gnu.org; 3 Dec 2015 07:41:55 +0000 Original-Received: from localhost ([127.0.0.1]:36834 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a4OWY-0007WW-Uf for submit@debbugs.gnu.org; Thu, 03 Dec 2015 02:41:55 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:60109) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a4OWE-0007W6-Nr for 22068@debbugs.gnu.org; Thu, 03 Dec 2015 02:41:53 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a4OWD-0005O1-Eg for 22068@debbugs.gnu.org; Thu, 03 Dec 2015 02:41:34 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:54911) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a4OWD-0005Nx-BT; Thu, 03 Dec 2015 02:41:33 -0500 Original-Received: from localhost ([127.0.0.1]:40497 helo=lola) by fencepost.gnu.org with esmtp (Exim 4.82) (envelope-from ) id 1a4OWC-0005b0-FA; Thu, 03 Dec 2015 02:41:32 -0500 Original-Received: by lola (Postfix, from userid 1000) id 21B41DF516; Thu, 3 Dec 2015 08:41:32 +0100 (CET) In-Reply-To: <83y4dchu71.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 03 Dec 2015 09:23:14 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) 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.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x 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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:109544 Archived-At: Eli Zaretskii writes: >> From: David Kastrup >> Cc: Eli Zaretskii , 22068@debbugs.gnu.org >> Date: Wed, 02 Dec 2015 20:58:10 +0100 >> >> >> When I call the function it does call, that call does not return if it >> >> gets switch-frame events. IOW, the function that asks the question >> >> doesn't know the frame was switched, and cannot do what David probably >> >> wants: switch frame and reissue the question. >> > >> > OK. But how can we get rid of that "switch-frame-" echo at least? >> >> If the function is not supposed to return switch-frame events, why >> doesn't it _act_ on them then? > > According to documentation, it does act on them, only later: > > Optional fourth argument CAN-RETURN-SWITCH-FRAME non-nil means that > this function will process a switch-frame event if the user switches > frames before typing anything. If the user switches frames in the > middle of a key sequence, or at the start of the sequence but > CAN-RETURN-SWITCH-FRAME is nil, then the event will be put off until > after the current key sequence. Well, the resulting user experience makes the impression of Emacs dragging its internals behind while it staggers on. When the desktop environment already heeded and signaled a focus change, choosing a behavior where Emacs does not act on it is likely to break the visual feedback between what the user is doing and what Emacs is doing (how about changes of virtual desktops?). The spurious keyboard half-echo of the frame switch event is just the cherry on top. -- David Kastrup