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 11:53:09 +0300 Message-ID: <838ul5tpfu.fsf@gnu.org> References: <290964377.56621411668876487.JavaMail.www@wwinf7125> <83a95nv9fm.fsf@gnu.org> <542668BA.6010800@gmx.at> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1411808069 25221 80.91.229.3 (27 Sep 2014 08:54:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 27 Sep 2014 08:54:29 +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 10:54:21 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 1XXnll-00065k-0Q for geb-bug-gnu-emacs@m.gmane.org; Sat, 27 Sep 2014 10:54:21 +0200 Original-Received: from localhost ([::1]:55044 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XXnlk-0007aE-Iq for geb-bug-gnu-emacs@m.gmane.org; Sat, 27 Sep 2014 04:54:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55637) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XXnlc-0007Zk-DF for bug-gnu-emacs@gnu.org; Sat, 27 Sep 2014 04:54:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XXnlX-0005on-Na for bug-gnu-emacs@gnu.org; Sat, 27 Sep 2014 04:54:12 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33672) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XXnlX-0005o9-KI for bug-gnu-emacs@gnu.org; Sat, 27 Sep 2014 04:54:07 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XXnlS-000876-4E for bug-gnu-emacs@gnu.org; Sat, 27 Sep 2014 04:54: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 08:54: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.141180801131145 (code B ref 18545); Sat, 27 Sep 2014 08:54:02 +0000 Original-Received: (at 18545) by debbugs.gnu.org; 27 Sep 2014 08:53:31 +0000 Original-Received: from localhost ([127.0.0.1]:53469 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XXnkw-00086G-QT for submit@debbugs.gnu.org; Sat, 27 Sep 2014 04:53:31 -0400 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:47465) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XXnks-000863-7T for 18545@debbugs.gnu.org; Sat, 27 Sep 2014 04:53:28 -0400 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0NCJ00G00XR98Z00@a-mtaout21.012.net.il> for 18545@debbugs.gnu.org; Sat, 27 Sep 2014 11:53:24 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NCJ00GV1Y104R90@a-mtaout21.012.net.il>; Sat, 27 Sep 2014 11:53:24 +0300 (IDT) In-reply-to: <542668BA.6010800@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:93789 Archived-At: > Date: Sat, 27 Sep 2014 09:35:22 +0200 > From: martin rudalics > CC: 18545@debbugs.gnu.org > > > Can you tell me how to reproduce this? I don't see this in the recipe > > you described in your bug report. > > I can reproduce something similar here but it hardly makes sense to > share my recipe. The bug manifests itself such that after an implicit > `forward-line' the cursor appears stuck in a partially visible line at > the bottom of a window. That window has a sibling on the right. On > Windows these siblings must be in the lower half of a split frame. On > Gtk no vertical splitting is needed. The cursor continues to move by > one line when keeping the down key (which implicitly runs `forward-line' > here) pressed for some three seconds and gets stuck again immediately. Do you see the line number in the mode line of that window increasing, after the cursor gets stuck, each time forward-line is run in that window? > Some additional particularities: > > (1) The bug is not reproducible with Emacs 24-4, only with current > trunk. That's strange, since the code to which you pointed is present in both branches. I'd like to hear from the OP (lompik@voila.fr) whether the bug observed with Helm is reproducible in the latest pretest 24.3.93 or in the emacs-24 branch. > The bug might be related to your changes from 2014-07-09. I guess you meant 2014-07-04? There are no changes in all of xdisp.c from 2014-07-09 or from a day before or after that (to account for possible local time differences). A bzr revno would be useful. > (gdb) p new_vpos > $1 = 426 > (gdb) p w->cursor.y > $2 = 432 > (gdb) > > In this particular case the display should be scrolled since otherwise > point ends up on the partially visible line. But the test > > if (new_vpos >= w->cursor.y) > > fails to trigger that. I cannot test a fix unless I have a way to reproduce the problem. Since you can reproduce it, could you propose a solution? One simple solution would be to add this: if (!cursor_row_fully_visible_p (w, 0, 0)) { w->cursor.vpos = -1; clear_glyph_matrix (w->desired_matrix); goto try_to_scroll; } after the call to set_cursor_from_row on line 16322. If this doesn't work, please see why. Thanks.