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#18545: 24.4.50: Bug - forward-line inside with-selected-window Date: Sat, 27 Sep 2014 19:06:17 +0300 Message-ID: <83zjdlrqti.fsf@gnu.org> References: <290964377.56621411668876487.JavaMail.www@wwinf7125> <83a95nv9fm.fsf@gnu.org> <542668BA.6010800@gmx.at> <838ul5tpfu.fsf@gnu.org> <54268B0B.1020203@gmx.at> <8361g9tijj.fsf@gnu.org> <5426BD71.4000705@gmx.at> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1411834050 27853 80.91.229.3 (27 Sep 2014 16:07:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 27 Sep 2014 16:07:30 +0000 (UTC) Cc: lompik@voila.fr, 18545@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Sep 27 18:07:23 2014 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 1XXuWn-0001og-EO for geb-bug-gnu-emacs@m.gmane.org; Sat, 27 Sep 2014 18:07:21 +0200 Original-Received: from localhost ([::1]:56427 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XXuWm-0005zT-SG for geb-bug-gnu-emacs@m.gmane.org; Sat, 27 Sep 2014 12:07:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34039) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XXuWe-0005z7-S5 for bug-gnu-emacs@gnu.org; Sat, 27 Sep 2014 12:07:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XXuWa-0007yL-4I for bug-gnu-emacs@gnu.org; Sat, 27 Sep 2014 12:07:12 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34049) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XXuWa-0007uq-1I for bug-gnu-emacs@gnu.org; Sat, 27 Sep 2014 12:07:08 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XXuWU-0003Gu-EB for bug-gnu-emacs@gnu.org; Sat, 27 Sep 2014 12:07: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: Sat, 27 Sep 2014 16:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18545 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 18545-submit@debbugs.gnu.org id=B18545.141183399712542 (code B ref 18545); Sat, 27 Sep 2014 16:07:02 +0000 Original-Received: (at 18545) by debbugs.gnu.org; 27 Sep 2014 16:06:37 +0000 Original-Received: from localhost ([127.0.0.1]:53846 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XXuW4-0003GD-Cn for submit@debbugs.gnu.org; Sat, 27 Sep 2014 12:06:36 -0400 Original-Received: from mtaout25.012.net.il ([80.179.55.181]:58952) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XXuW1-0003Fy-0a for 18545@debbugs.gnu.org; Sat, 27 Sep 2014 12:06:34 -0400 Original-Received: from conversion-daemon.mtaout25.012.net.il by mtaout25.012.net.il (HyperSendmail v2007.08) id <0NCK00G00HCDQF00@mtaout25.012.net.il> for 18545@debbugs.gnu.org; Sat, 27 Sep 2014 19:01:36 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout25.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NCK0092UHUOFT80@mtaout25.012.net.il>; Sat, 27 Sep 2014 19:01:36 +0300 (IDT) In-reply-to: <5426BD71.4000705@gmx.at> 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:93795 Archived-At: > Date: Sat, 27 Sep 2014 15:36:49 +0200 > From: martin rudalics > CC: lompik@voila.fr, 18545@debbugs.gnu.org > > > AFAIU, this means the window is not being redrawn on each > > forward-line; not even its mode line is updated. You should be able > > to confirm this if you turn on trace-redisplay (assuming you've built > > with GLYPH_DEBUG, a.k.a. "--enable-checking=glyphs") -- you will not > > see the window announced in the trace. (Btw, turning off > > blink-cursor-mode removes a lot of clutter from the redisplay trace, > > so I suggest to do that in these experiments.) > > I attach an output, can't make much head or tail of it. The *sidebar* > window is the one with the problem, the .emacs window the one on the > right of it. AFAIU, it's indeed similar to the problem I solved with my previous patch (the one you have installed). > 117 > 122 [28 times] This says point doesn't move, which I don't understand how can happen. forward-line doesn't care about anything except moving point to the next line. > >> (gdb) p row->height > >> $5 = 16 > >> (gdb) p row->visible_height > >> $6 = 16 > >> > >> Any ideas? > > > > What is last_visible_y in that window? To see that, step into > > try_window called on line 16235, wait until it calls start_display, > > and look at it.last_visible_y. > > At the xdisp.c line reading: > > while (it.current_y < it.last_visible_y) > > I have > > (gdb) p it.last_visible_y > $7 = 442 > > and (just to confirm the earlier posted) at the xdisp.c line reading > > if (new_vpos >= w->cursor.y) > > I have: > > (gdb) p new_vpos > $10 = 426 > (gdb) p w->cursor.y > $11 = 432 But if new_vpos is 426 and row->height is 16, then the last row, which starts at y = 426, will end at y = 442, i.e. it's fully visible. This contradicts what you said earlier, that the last line is only partially visible. > >> BTW is there a way to print the value returned by a macro in gdb? > > > > Yes, just print it: > > > > (gdb) p MATRIX_ROW_PARTIALLY_VISIBLE_P (w, row) > > Here I get > > (gdb) p MATRIX_ROW_PARTIALLY_VISIBLE_P (w, row) > No symbol "__FILE__" in current context. I get this: (gdb) p MATRIX_ROW_PARTIALLY_VISIBLE_P(w,row) $1 = 0 > > If this doesn't work, perhaps you didn't build with -g3, > > I used CPPFLAGS='-DGLYPH_DEBUG=1' CFLAGS='-O0 -g3' > > > or your > > compiler is buggy. > > Hmm... Which GCC version is that? I have 4.8.1 here.