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#14616: 24.3.50; Excessive cursor movement on non-X Emacs Date: Tue, 06 Aug 2013 18:26:36 +0300 Message-ID: <83zjsuvo0j.fsf@gnu.org> References: <83ip10hlyr.fsf@gnu.org> <83hafqz8uo.fsf@gnu.org> <83wqo8vvyb.fsf@gnu.org> <83fvuuws3k.fsf@gnu.org> <83mwp1z7dm.fsf@gnu.org> <83a9l0yxom.fsf@gnu.org> <83ehaayk6d.fsf@gnu.org> <83fvuovuvx.fsf@gnu.org> <83d2psvscy.fsf@gnu.org> <83a9kvx5jk.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1375802839 11687 80.91.229.3 (6 Aug 2013 15:27:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 6 Aug 2013 15:27:19 +0000 (UTC) Cc: 14616@debbugs.gnu.org To: Lars Magne Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Aug 06 17:27:20 2013 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 1V6jAK-0002cd-UP for geb-bug-gnu-emacs@m.gmane.org; Tue, 06 Aug 2013 17:27:17 +0200 Original-Received: from localhost ([::1]:34136 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V6jAK-0004iv-H3 for geb-bug-gnu-emacs@m.gmane.org; Tue, 06 Aug 2013 11:27:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60266) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V6jAC-0004ZF-3i for bug-gnu-emacs@gnu.org; Tue, 06 Aug 2013 11:27:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V6jA6-0003HJ-BR for bug-gnu-emacs@gnu.org; Tue, 06 Aug 2013 11:27:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:49085) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V6jA6-0003H4-8y for bug-gnu-emacs@gnu.org; Tue, 06 Aug 2013 11:27:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1V6jA5-0000zK-Rv for bug-gnu-emacs@gnu.org; Tue, 06 Aug 2013 11:27:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 06 Aug 2013 15:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14616 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 14616-submit@debbugs.gnu.org id=B14616.13758028063747 (code B ref 14616); Tue, 06 Aug 2013 15:27:01 +0000 Original-Received: (at 14616) by debbugs.gnu.org; 6 Aug 2013 15:26:46 +0000 Original-Received: from localhost ([127.0.0.1]:43401 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V6j9m-0000yG-Kg for submit@debbugs.gnu.org; Tue, 06 Aug 2013 11:26:46 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:61660) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V6j9f-0000xl-JC for 14616@debbugs.gnu.org; Tue, 06 Aug 2013 11:26:40 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0MR400L0086ZGX00@a-mtaout22.012.net.il> for 14616@debbugs.gnu.org; Tue, 06 Aug 2013 18:26:28 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MR400KKA882YPD0@a-mtaout22.012.net.il>; Tue, 06 Aug 2013 18:26:27 +0300 (IDT) In-reply-to: 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:76993 Archived-At: > From: Lars Magne Ingebrigtsen > Cc: 14616@debbugs.gnu.org > Date: Mon, 05 Aug 2013 22:20:32 +0200 > > > They oscillate. Makes sense, but I don't see why should that happen. > > If it loops over all the frames and switches to them, and this happens > every time redisplay happens (because of accept-process-output), then > that seems natural. But wrong. :-) Does the change below help? === modified file 'src/xdisp.c' --- src/xdisp.c 2013-08-03 18:16:43 +0000 +++ src/xdisp.c 2013-08-06 15:24:02 +0000 @@ -11181,7 +11181,9 @@ prepare_menu_bars (void) { f = XFRAME (frame); if (!EQ (frame, tooltip_frame) - && (FRAME_VISIBLE_P (f) || FRAME_ICONIFIED_P (f))) + && (FRAME_ICONIFIED_P (f) + || FRAME_VISIBLE_P (f) == 1 + || (FRAME_VISIBLE_P (f) == 2 && FRAME_WINDOW_P (f)))) x_consider_frame_title (frame); } }