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:45:45 +0300 Message-ID: <83wqnyvn4m.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> <83bo5bx6pj.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1375803982 24495 80.91.229.3 (6 Aug 2013 15:46:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 6 Aug 2013 15:46:22 +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:46:22 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 1V6jSi-00067G-Ds for geb-bug-gnu-emacs@m.gmane.org; Tue, 06 Aug 2013 17:46:16 +0200 Original-Received: from localhost ([::1]:40528 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V6jSi-0000kb-2q for geb-bug-gnu-emacs@m.gmane.org; Tue, 06 Aug 2013 11:46:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36154) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V6jSb-0000j6-0f for bug-gnu-emacs@gnu.org; Tue, 06 Aug 2013 11:46:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V6jSU-0002tY-Il for bug-gnu-emacs@gnu.org; Tue, 06 Aug 2013 11:46:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:49096) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V6jSU-0002tO-GI for bug-gnu-emacs@gnu.org; Tue, 06 Aug 2013 11:46:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1V6jSU-0001n8-5X for bug-gnu-emacs@gnu.org; Tue, 06 Aug 2013 11:46:02 -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:46:02 +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.13758039526856 (code B ref 14616); Tue, 06 Aug 2013 15:46:02 +0000 Original-Received: (at 14616) by debbugs.gnu.org; 6 Aug 2013 15:45:52 +0000 Original-Received: from localhost ([127.0.0.1]:43412 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V6jSG-0001mR-4z for submit@debbugs.gnu.org; Tue, 06 Aug 2013 11:45:52 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:34972) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V6jSA-0001m8-6B for 14616@debbugs.gnu.org; Tue, 06 Aug 2013 11:45:46 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0MR400L0093UMG00@a-mtaout22.012.net.il> for 14616@debbugs.gnu.org; Tue, 06 Aug 2013 18:45:36 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MR400L9V93ZCF70@a-mtaout22.012.net.il>; Tue, 06 Aug 2013 18:45:36 +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:76994 Archived-At: > From: Lars Magne Ingebrigtsen > Cc: 14616@debbugs.gnu.org > Date: Mon, 05 Aug 2013 21:53:36 +0200 > > Eli Zaretskii writes: > > > Because prepare_menu_bars, called as part of redisplay, loops over all > > the frames. > > I see. Ironically, I have (menu-bar-mode -1), so I have no menu bars at > all. :-) That's OK, update_menu_bar, called by prepare_menu_bars, does TRT in your case and returns immediately without doing anything. The problem is in x_consider_frame_title, which actually switches to other frames and updates their titles. As strange as it sounds, the code explicitly tries to update the titles of non-GUI frames as well, although I don't see the point in that. To be on the safe side, the change I proposed disables the update of the frame title only for TTY frames other than the top frame, the only one that is visible on a TTY.