From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dima Kogan Newsgroups: gmane.emacs.bugs Subject: bug#14567: These changes sometimes break plain text navigation Date: Sat, 06 Jul 2013 09:14:44 -0700 Message-ID: <87ppuvacnf.fsf@secretsauce.net> References: <87r4fc9i3r.fsf@secretsauce.net> <83ppuwx86k.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1373127313 29613 80.91.229.3 (6 Jul 2013 16:15:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 6 Jul 2013 16:15:13 +0000 (UTC) To: 14567@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jul 06 18:15:15 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 1UvV8k-0000qd-28 for geb-bug-gnu-emacs@m.gmane.org; Sat, 06 Jul 2013 18:15:14 +0200 Original-Received: from localhost ([::1]:43766 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UvV8j-0000qX-Hh for geb-bug-gnu-emacs@m.gmane.org; Sat, 06 Jul 2013 12:15:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52919) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UvV8e-0000px-5m for bug-gnu-emacs@gnu.org; Sat, 06 Jul 2013 12:15:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UvV8Z-0002P1-NL for bug-gnu-emacs@gnu.org; Sat, 06 Jul 2013 12:15:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40573) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UvV8Z-0002NW-Jk for bug-gnu-emacs@gnu.org; Sat, 06 Jul 2013 12:15:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1UvV8Y-0005xd-Hb for bug-gnu-emacs@gnu.org; Sat, 06 Jul 2013 12:15:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dima Kogan Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 06 Jul 2013 16:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14567 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 14567-submit@debbugs.gnu.org id=B14567.137312729022872 (code B ref 14567); Sat, 06 Jul 2013 16:15:02 +0000 Original-Received: (at 14567) by debbugs.gnu.org; 6 Jul 2013 16:14:50 +0000 Original-Received: from localhost ([127.0.0.1]:34889 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UvV8L-0005wo-OD for submit@debbugs.gnu.org; Sat, 06 Jul 2013 12:14:50 -0400 Original-Received: from out1-smtp.messagingengine.com ([66.111.4.25]:44527) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UvV8J-0005we-GP for 14567@debbugs.gnu.org; Sat, 06 Jul 2013 12:14:48 -0400 Original-Received: from compute5.internal (compute5.nyi.mail.srv.osa [10.202.2.45]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id E102B20BEB for <14567@debbugs.gnu.org>; Sat, 6 Jul 2013 12:14:45 -0400 (EDT) Original-Received: from frontend1.nyi.mail.srv.osa ([10.202.2.160]) by compute5.internal (MEProxy); Sat, 06 Jul 2013 12:14:45 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=secretsauce.net; h=from:to:subject:references:in-reply-to:date:message-id :mime-version:content-type; s=mesmtp; bh=A/KZVbLc12UY5BqNa0liyba Npyk=; b=CKJwcwiP5T9IAQiciPVLtnln8whok3lC5DNhCxB0+D3SmcKaspNg3qy 0WLYPS4eAyboDofa4+hEXNz8hjdKJ/9TAst2LMmWSgQICa9PuyULYFNv0J93nCdP oR3x5Ob+6A0gioo/YVlZrD+Rn+kae9/h4ne10cGT12zAUya6f2yg= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=from:to:subject:references:in-reply-to :date:message-id:mime-version:content-type; s=smtpout; bh=A/KZVb Lc12UY5BqNa0liybaNpyk=; b=SlizZ2T8lu7byHqlB1nx8UzO5K369AVokJTp7C 4/2vJFNAcgmZNRH/lfXPnhVRJfwSsxU/zESh9dpHnf1tQG2KEq28rQeh+xmfeOq/ 8kJjEX+rYO07CjE3sm2Q9kEwd2m33WAf4Bdjl9SRP3Hg9qBsdeea3BwAmIihsPwF jMcGs= X-Sasl-enc: 6qZAs3UqRu+0Yk83dMAVvvfE9OhrVdYTJYwNasb079uZ 1373127285 Original-Received: from shorty.local (unknown [76.169.247.77]) by mail.messagingengine.com (Postfix) with ESMTPA id A2B16C00E83 for <14567@debbugs.gnu.org>; Sat, 6 Jul 2013 12:14:45 -0400 (EDT) Original-Received: from dima by shorty.local with local (Exim 4.80) (envelope-from ) id 1UvV8G-0006xq-6c for 14567@debbugs.gnu.org; Sat, 06 Jul 2013 09:14:44 -0700 User-agent: mu4e 0.9.9.5-dev6; emacs 24.3.50.1 In-reply-to: <83ppuwx86k.fsf@gnu.org> 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:76001 Archived-At: Eli Zaretskii writes: >> From: Dima Kogan >> Date: Sat, 06 Jul 2013 02:02:16 -0700 >> >> 2. Press C-f repeatedly until the point reaches the bottom of the >> screen; this works fine >> >> 3. When at the bottom of the screen C-f scrolls the text one line up, >> while keeping the point where it was in the buffer. Now the point >> gets stuck, and subsequent C-f/C-b just scroll the screen; the point >> is stuck. > > You mean, "C-x =" reports the same value no matter how many times you > press C-f or C-b? First off, there was a very important brain fart in what I just said. I meant C-n/C-p instead of C-f/C-b everywhere in this bug report. Oops. This was probably the worst way to mess up this bug report. Hopefully it makes a bit more sense now. Sorry. C-x = does report the same value with C-n/C-p pressed as long as there is room to scroll; if we're already looking at the start of the document, then C-p does the normal unbugged thing, since it can't scroll back any further. > Moreover, the changes in this bug report are not supposed to affect > C-f/C-b in any way. If you revert the changes in simple.el introduced > in revision 112998, does this problem go away? Like I said above, I badly flubbed the report; it's actually about C-n/C-p. And yes; reverting that revision makes things work again. > Does any file reproduces the problem, or only some? E.g., does > xdisp.c from the Emacs sources reproduce it? Any file does it. I use the output of `seq 1000`, which is not very special. > Is the last line only partially visible, per chance? No. The edge of the buffer looks like it aligns with the bottom edge of the last line of text, at least to my eye. If I mess with the displayed text more by pressing C-x C-+ several times then the last line IS only partially visible. Then I get the same point-getting-stuck behavior, but it recovers after a handful of scroll-only C-n presses. The exact number depends on window size, font size, how many times C-x C-+ was pressed, etc. > If you set auto-window-vscroll to nil, does the problem still happen? No. That fixes it. >> This is 100% reproducible for me. I suspect it may not be so for others. >> Let me know if I should run any specific tests to get to the bottom of >> this. > > Well, not being dependent on a particular font would be a start. An > easier reproducing recipe would be even better. I suspect this is font-dependent because it has something to do with the pixel height of the font text. Can you reproduce by keeping whaever font you're using and pressing C-x C-+ a few times? As I described earlier this usually sticks the point for only a few C-n presses, but it's probably the same issue. I just did some minor debugging by adding a trace to (window-line-height) with (trace-function-background). If I turn off global-hl-line-mode, then the bug goes away, and (window-line-height) appears to return reasonable values. With global-hl-line-mode, (window-line-height) and (window-line-height -1) both return nil supposedly. Not sure how line-move-partial could keep working without error in that case, but that's what it says. > Thanks. Thank YOU!