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: Wed, 26 Jun 2013 19:32:12 +0300 Message-ID: <83ip10hlyr.fsf@gnu.org> References: <83y5a0ka99.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1372264392 16513 80.91.229.3 (26 Jun 2013 16:33:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 26 Jun 2013 16:33:12 +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 Wed Jun 26 18:33:12 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 1Ursee-0001Rq-2H for geb-bug-gnu-emacs@m.gmane.org; Wed, 26 Jun 2013 18:33:12 +0200 Original-Received: from localhost ([::1]:47105 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ursed-0004Ia-N2 for geb-bug-gnu-emacs@m.gmane.org; Wed, 26 Jun 2013 12:33:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35128) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UrseZ-0004Hc-Bn for bug-gnu-emacs@gnu.org; Wed, 26 Jun 2013 12:33:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UrseU-0008IJ-U5 for bug-gnu-emacs@gnu.org; Wed, 26 Jun 2013 12:33:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48882) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UrseU-0008IC-RC for bug-gnu-emacs@gnu.org; Wed, 26 Jun 2013 12:33:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1UrseU-0001HM-1T for bug-gnu-emacs@gnu.org; Wed, 26 Jun 2013 12:33: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: Wed, 26 Jun 2013 16:33: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.13722643574810 (code B ref 14616); Wed, 26 Jun 2013 16:33:01 +0000 Original-Received: (at 14616) by debbugs.gnu.org; 26 Jun 2013 16:32:37 +0000 Original-Received: from localhost ([127.0.0.1]:43198 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Urse1-0001FS-N9 for submit@debbugs.gnu.org; Wed, 26 Jun 2013 12:32:37 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:48066) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Ursdu-0001Ew-4n for 14616@debbugs.gnu.org; Wed, 26 Jun 2013 12:32:31 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0MP000D00DU3GE00@a-mtaout22.012.net.il> for 14616@debbugs.gnu.org; Wed, 26 Jun 2013 19:32:19 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MP000C5GDXUQ2L0@a-mtaout22.012.net.il>; Wed, 26 Jun 2013 19:32:19 +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:75616 Archived-At: > From: Lars Magne Ingebrigtsen > Cc: 14616@debbugs.gnu.org > Date: Tue, 25 Jun 2013 22:18:55 +0200 > > Eli Zaretskii writes: > > > Any progress with investigating this? > > > > Let me know if you need help. > > I do need help. I've been trying to follow the advice in the #13864 bug > report, but the code has shifted quite a bit in the last two months, and > I know virtually nothing about gdb, I'm afraid. > > Do you have a handy set of commands to start debugging this? Let's see... The first set of instructions, at http://debbugs.gnu.org/cgi/bugreport.cgi?bug=13864#20, should still be a good starting point. I repeat them below, indented (with one important correction): Could you please attach a debugger to Emacs, after starting the server, but before opening the TTY frame with emacsclient, and set a breakpoint like this: (gdb) set height 0 (gdb) break update_frame_1 (gdb) commands > p force_p > p inhibit_id_p > continue > end (gdb) Then re-create the problem and see whether update_frame_1 is called very frequently, and if so, what are the values of the 2 arguments printed by the breakpoint commands above. (I don't know what is your level of proficiency with GDB, so let me know if you need more detailed instructions.) Don't forget to invoke GDB from the src directory, and make sure that it reads the .gdbinit file there, and does not reject it due to security considerations. If the above is not clear enough, let me know where you want me to elaborate. (In case you didn't know, attaching a debugger means running "gdb -p PID" where PID is the id of the Emacs process.) The goal of the above is to see whether update_frame_1 is called with high frequency, so that we could then understand why it is called and why it redraws the same screen content again and again. TIA