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#13864: 24.3.50; emacsclient -t loops when connected to emacs server running in X11 Date: Thu, 07 Mar 2013 14:48:20 +0200 Message-ID: <83y5dzz88b.fsf@gnu.org> References: <86y5e4xpd8.fsf@chateau.d.if> <83ehfvt5pp.fsf@gnu.org> <86mwujou60.fsf@chateau.d.if> <83y5e2synt.fsf@gnu.org> <86ip56adz3.fsf@chateau.d.if> <83txoo1mp3.fsf@gnu.org> <868v60743o.fsf@chateau.d.if> <83ppzc1bx9.fsf@gnu.org> <866214m1bh.fsf@chateau.d.if> <838v5z1yx4.fsf@gnu.org> <86mwuf8xrq.fsf@chateau.d.if> <8362131sf1.fsf@gnu.org> <86ip538qb8.fsf@chateau.d.if> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1362660582 29596 80.91.229.3 (7 Mar 2013 12:49:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 7 Mar 2013 12:49:42 +0000 (UTC) Cc: 13864@debbugs.gnu.org To: ashish.is@lostca.se (Ashish SHUKLA) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Mar 07 13:50:03 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 1UDaGo-0003tY-JH for geb-bug-gnu-emacs@m.gmane.org; Thu, 07 Mar 2013 13:50:02 +0100 Original-Received: from localhost ([::1]:40040 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDaGS-0007Hw-RM for geb-bug-gnu-emacs@m.gmane.org; Thu, 07 Mar 2013 07:49:40 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:52585) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDaGO-0007Hb-Lj for bug-gnu-emacs@gnu.org; Thu, 07 Mar 2013 07:49:38 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UDaGJ-0000we-Py for bug-gnu-emacs@gnu.org; Thu, 07 Mar 2013 07:49:36 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59837) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDaGJ-0000wa-MY for bug-gnu-emacs@gnu.org; Thu, 07 Mar 2013 07:49:31 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UDaGo-000854-8R for bug-gnu-emacs@gnu.org; Thu, 07 Mar 2013 07:50:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 07 Mar 2013 12:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13864 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 13864-submit@debbugs.gnu.org id=B13864.136266054930999 (code B ref 13864); Thu, 07 Mar 2013 12:50:02 +0000 Original-Received: (at 13864) by debbugs.gnu.org; 7 Mar 2013 12:49:09 +0000 Original-Received: from localhost ([127.0.0.1]:35713 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UDaFw-00083v-Ot for submit@debbugs.gnu.org; Thu, 07 Mar 2013 07:49:09 -0500 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:34622) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UDaFt-00083R-Q0 for 13864@debbugs.gnu.org; Thu, 07 Mar 2013 07:49:07 -0500 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MJA00300II4QN00@a-mtaout20.012.net.il> for 13864@debbugs.gnu.org; Thu, 07 Mar 2013 14:48:21 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MJA002WBJKJU5H0@a-mtaout20.012.net.il>; Thu, 07 Mar 2013 14:48:20 +0200 (IST) In-reply-to: <86ip538qb8.fsf@chateau.d.if> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.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:72198 Archived-At: > From: ashish.is@lostca.se (Ashish SHUKLA) > Cc: 13864@debbugs.gnu.org > Date: Thu, 07 Mar 2013 15:49:55 +0530 > > > (gdb) set pagination off > > or > > (gdb) set height 0 > > > will do that. > > Thanks > > Let me know if you need anything else or like me to test something. Another trick that potentially avoids some work is this: (gdb) set logging on This will cause GDB to put all of its output on a file named gdb.txt, so you don't need to copy-paste from your screen into the mail messages. (Caveat: this does not show what _you_ type at GDB's prompt, only the GDB responses.) What I need now is the output of several times the following breakpoint is hit: (gdb) break dispnew.c:4509 (gdb) commands > p i > p desired_matrix->nrows > if i < desired_matrix->nrows > pgrowx desired_matrix->rows+i > end > end Also, let's see if scrolling_1 is ever called: (gdb) break scrolling_1 (gdb) commands > continue > end (gdb) The goal is to understand why Emacs is redrawing the display although nothing on display changes. There's some convoluted code in update_frame_line, a subroutine of update_frame_1, which attempts to find the differences between the current line on display and what should be on the current line, and only redraw the part(s) that changed. I'd expect that code to figure out that nothing needs to be redrawn in this case, but somehow it fails, I don't yet see why.