From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#18545: 24.4.50: Bug - forward-line inside with-selected-window Date: Sun, 28 Sep 2014 11:33:36 +0200 Message-ID: <5427D5F0.9050303@gmx.at> 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> <83zjdlrqti.fsf@gnu.org> <5427099F.6080406@gmx.at> <83tx3ssw5x.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1411897289 16087 80.91.229.3 (28 Sep 2014 09:41:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 28 Sep 2014 09:41:29 +0000 (UTC) Cc: lompik@voila.fr, 18545@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Sep 28 11:41:19 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 1XYAyk-0001mZ-LJ for geb-bug-gnu-emacs@m.gmane.org; Sun, 28 Sep 2014 11:41:18 +0200 Original-Received: from localhost ([::1]:59004 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XYAyk-00007T-9Y for geb-bug-gnu-emacs@m.gmane.org; Sun, 28 Sep 2014 05:41:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36958) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XYAyU-0008QJ-W4 for bug-gnu-emacs@gnu.org; Sun, 28 Sep 2014 05:41:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XYAyL-0005iF-9z for bug-gnu-emacs@gnu.org; Sun, 28 Sep 2014 05:41:02 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34287) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XYAyL-0005hi-7C for bug-gnu-emacs@gnu.org; Sun, 28 Sep 2014 05:40:53 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XYAri-0004eE-MG for bug-gnu-emacs@gnu.org; Sun, 28 Sep 2014 05:34:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 28 Sep 2014 09:34: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.141189683317851 (code B ref 18545); Sun, 28 Sep 2014 09:34:02 +0000 Original-Received: (at 18545) by debbugs.gnu.org; 28 Sep 2014 09:33:53 +0000 Original-Received: from localhost ([127.0.0.1]:54081 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XYArZ-0004dr-30 for submit@debbugs.gnu.org; Sun, 28 Sep 2014 05:33:53 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:54310) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XYArW-0004di-4Q for 18545@debbugs.gnu.org; Sun, 28 Sep 2014 05:33:51 -0400 Original-Received: from [93.82.13.243] ([93.82.13.243]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0MgtWa-1Xu5QS3OfQ-00M6Ty; Sun, 28 Sep 2014 11:33:48 +0200 In-Reply-To: <83tx3ssw5x.fsf@gnu.org> X-Provags-ID: V03:K0:jZSoh0TVY/NyIx8Rum5VvlY0Xu21gsnip56pUMl24UpyGJfZAIe GRnDctRFuWbtzSVJWY4ZXjsRQy/WoZQfQo1mhOBEBG8L8DolLM6bFgTrbTcPD4KiQnhP0V1 oXsOIaiuDRxqtm6Ws5KQqSwHHuEwFujgB8tv6a5FnJwQVH0KGd2wQMST6k3Xc/az/hrD3nw KNUKpcxT9Qm9Sx8JE36Og== X-UI-Out-Filterresults: notjunk:1; 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:93815 Archived-At: >> But after 28 times point moves which is even less understandable. > > I don't think this is relevant. It could be related to > blink-cursor-mode ... always turned off here ... > or some other feature that triggers a more thorough > redisplay. (Try typing "M-x", for example.) The code part that seems > to be involved in this is an optimization, so when it is not taken, > you don't see the problem. OK. But the only thing I do here is leaning on the button. > Can you show all the values of MATRIX_ROW_BOTTOM_Y that are examined > in this loop, after we determine that new_vpos should be 426: > > row = MATRIX_FIRST_TEXT_ROW (w->desired_matrix); > while (MATRIX_ROW_BOTTOM_Y (row) < new_vpos) > ++row; Using while (MATRIX_ROW_BOTTOM_Y (row) < new_vpos) { ++row; Vdebug_on_message = Fcons (Fcons (make_number (row->y), make_number (new_vpos)), Vdebug_on_message); } and nreverse on the value of Vdebug_on_message gets me a repeated pattern of (32 . 426) (48 . 426) (64 . 426) (80 . 426) (96 . 426) (112 . 426) (128 . 426) (144 . 426) (160 . 426) (176 . 426) (192 . 426) (208 . 426) (224 . 426) (240 . 426) (256 . 426) (272 . 426) (288 . 426) (304 . 426) (320 . 426) (336 . 426) (352 . 426) (368 . 426) (384 . 426) (400 . 426) (416 . 426) >> I don't >> understand cursor_row_fully_visible_p much. > > Which part of it do you not understand? Why it should return 1 in these two cases if (!MATRIX_ROW_PARTIALLY_VISIBLE_P (w, row)) return 1; and if (row->height >= window_height) { if (!force_p || MINI_WINDOW_P (w) || w->vscroll || w->cursor.vpos == 0) return 1; } martin