From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.bugs Subject: bug#8307: Scrolling problems in lexbind-new branch Date: Mon, 21 Mar 2011 04:04:06 +0100 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: dough.gmane.org 1300676845 4987 80.91.229.12 (21 Mar 2011 03:07:25 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 21 Mar 2011 03:07:25 +0000 (UTC) To: 8307@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Mar 21 04:07:21 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Q1VSi-00078v-1e for geb-bug-gnu-emacs@m.gmane.org; Mon, 21 Mar 2011 04:07:20 +0100 Original-Received: from localhost ([127.0.0.1]:48773 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q1VSh-0006mJ-4G for geb-bug-gnu-emacs@m.gmane.org; Sun, 20 Mar 2011 23:07:19 -0400 Original-Received: from [140.186.70.92] (port=57291 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q1VSY-0006j1-Eu for bug-gnu-emacs@gnu.org; Sun, 20 Mar 2011 23:07:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q1VSX-0007H5-Bv for bug-gnu-emacs@gnu.org; Sun, 20 Mar 2011 23:07:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45415) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q1VSX-0007Gx-6f for bug-gnu-emacs@gnu.org; Sun, 20 Mar 2011 23:07:09 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Q1VQU-00072L-3R; Sun, 20 Mar 2011 23:05:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juanma Barranquero Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 21 Mar 2011 03:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 8307 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: Bug-Gnu-Emacs Original-Received: via spool by submit@debbugs.gnu.org id=B.130067669827037 (code B ref -1); Mon, 21 Mar 2011 03:05:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 21 Mar 2011 03:04:58 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q1VQP-000722-LO for submit@debbugs.gnu.org; Sun, 20 Mar 2011 23:04:57 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q1VQN-00071q-Pw for submit@debbugs.gnu.org; Sun, 20 Mar 2011 23:04:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q1VQH-0006x1-Ow for submit@debbugs.gnu.org; Sun, 20 Mar 2011 23:04:50 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:34244) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q1VQH-0006wx-MS for submit@debbugs.gnu.org; Sun, 20 Mar 2011 23:04:49 -0400 Original-Received: from [140.186.70.92] (port=56549 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q1VQG-0007X9-9J for bug-gnu-emacs@gnu.org; Sun, 20 Mar 2011 23:04:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q1VQF-0006wd-3f for bug-gnu-emacs@gnu.org; Sun, 20 Mar 2011 23:04:48 -0400 Original-Received: from mail-yx0-f169.google.com ([209.85.213.169]:37909) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q1VQE-0006wY-Us for bug-gnu-emacs@gnu.org; Sun, 20 Mar 2011 23:04:47 -0400 Original-Received: by yxt33 with SMTP id 33so2800585yxt.0 for ; Sun, 20 Mar 2011 20:04:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:from:date:message-id:subject:to :content-type; bh=/vgLjIguWRmzL9CzrPT4VdVWYa/+gZCuT0gBhZimRvg=; b=ZDpVZmsB/SqWHkS7JyNZ2dqga/0pmsU9EVFw6nCku9Jiz9EtBCtoyCN8DWFEPpZAlr PJVNwzDil7ZwXQffXtoenPNVhZOglXGtag9REnZL/0wQ51/C+nGKdd1kRPl+9dY7AXVQ 4pw1cBwaS358igRgK8T8eZe7hMCfV78ZOwueo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=f7+a70cIHPK+9ZTkzzjX2bssWZTX2Cclx2SwrS9OEr8/QR6GehinI3X9w3sNXDfnEG sKWoSKAC8lEgu8OL1jqlmdbfTZmdBLYo8FrSCcsxiUAfZBoPuKEtuWiTPpPLJnTAFAUG E58dZjYDD0aHxa8Lm1T/TX/EIKJTRZO3D7RNg= Original-Received: by 10.146.108.19 with SMTP id g19mr3259867yac.24.1300676686097; Sun, 20 Mar 2011 20:04:46 -0700 (PDT) Original-Received: by 10.147.34.11 with HTTP; Sun, 20 Mar 2011 20:04:06 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 20 Mar 2011 23:05:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:45214 Archived-At: Version: 24.0.50 Package: emacs I can reproduce this at will on lexbind-new, and not at all on trunk. Assume you have a test file, test.txt, with many non-empty lines. That's not really required (it could be any file long enough to cause scrolling), but makes the bug easier to see. In case it matters, I'm using DejaVu Sans Mono: uniscribe:-outline-DejaVu Sans Mono-normal-normal-normal-mono-13-*-*-*-c-*-iso8859-1 Now do: emacs -Q --eval "(progn (setq scroll-conservatively 1) (setq-default show-trailing-whitespace t))" test.txt ;;; keep it pressed until it starts line-by-line scrolling (The value of scroll-conservatively is irrelevant, as long as it is greater than zero.) What I see is that the cursor stops in the next-to-last line; scrolling continues normally, but the cursor does not advance to the last line. (In fact, if you keep it pressed down enough time, it eventually moves to the last line, but in my setup that can take several hundred lines.) Now, with the cursor on the next-to-last line, move it to column 0, so xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx #xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ; # is the cursor position xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ; last line of the window, line number N Now moves the cursor to the last line: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx #xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ; last line of the window, line number N And then moves to the right *and* scrolls the window: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx x#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ; line number N xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ; last line of the window Another, likely related effect: emacs -Q --eval "(setq-default show-trailing-whitespace t)" test.txt then keep pressed. Instead of scrolling to the last line of the window and then recentering, it starts scrolling line-by-line once the cursor reaches the middle point of the window height.