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#22068: 25.0.50; Delayed reaction to switching frames? Date: Thu, 03 Dec 2015 09:52:51 +0200 Message-ID: <83r3j4hsto.fsf@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> <874mg0x9lf.fsf@fencepost.gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1449129265 11430 80.91.229.3 (3 Dec 2015 07:54:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 3 Dec 2015 07:54:25 +0000 (UTC) Cc: 22068@debbugs.gnu.org To: David Kastrup Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Dec 03 08:54:14 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 1a4OiR-0001wg-4y for geb-bug-gnu-emacs@m.gmane.org; Thu, 03 Dec 2015 08:54:11 +0100 Original-Received: from localhost ([::1]:33870 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a4OiQ-0002N1-Fg for geb-bug-gnu-emacs@m.gmane.org; Thu, 03 Dec 2015 02:54:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45362) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a4OiM-0002LD-UG for bug-gnu-emacs@gnu.org; Thu, 03 Dec 2015 02:54:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a4OiH-0000v0-Vb for bug-gnu-emacs@gnu.org; Thu, 03 Dec 2015 02:54:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:47131) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a4OiH-0000uw-S7 for bug-gnu-emacs@gnu.org; Thu, 03 Dec 2015 02:54:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1a4OiH-0007nB-JW for bug-gnu-emacs@gnu.org; Thu, 03 Dec 2015 02:54:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 03 Dec 2015 07:54: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.144912920929915 (code B ref 22068); Thu, 03 Dec 2015 07:54:01 +0000 Original-Received: (at 22068) by debbugs.gnu.org; 3 Dec 2015 07:53:29 +0000 Original-Received: from localhost ([127.0.0.1]:36839 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a4Ohl-0007mQ-9C for submit@debbugs.gnu.org; Thu, 03 Dec 2015 02:53:29 -0500 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:63434) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a4OhR-0007m0-8J for 22068@debbugs.gnu.org; Thu, 03 Dec 2015 02:53:28 -0500 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0NYR00500V2S9S00@a-mtaout22.012.net.il> for 22068@debbugs.gnu.org; Thu, 03 Dec 2015 09:53:07 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NYR005STV8J9N00@a-mtaout22.012.net.il>; Thu, 03 Dec 2015 09:53:07 +0200 (IST) In-reply-to: <874mg0x9lf.fsf@fencepost.gnu.org> 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: 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:109545 Archived-At: > From: David Kastrup > Cc: rudalics@gmx.at, 22068@debbugs.gnu.org > Date: Thu, 03 Dec 2015 08:41:32 +0100 > > > 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. I agree. The practical question is how to find some reasonable solution here. Is it possible for you to try to hack the functions involved in this, such that read-key-sequence-vector is called with its 4th argument non-nil, and see if the results are better or worse? (I presume the code in userlock.el will have to be changed to do something when this event comes from read-char-choice, or something.)