unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Juanma Barranquero <lekktu@gmail.com>
To: 8307@debbugs.gnu.org
Subject: bug#8307: Scrolling problems in lexbind-new branch
Date: Mon, 21 Mar 2011 04:04:06 +0100	[thread overview]
Message-ID: <AANLkTinq56EyvWrkYdctvQWqZHa_3RtGT=_VSH=9w9JC@mail.gmail.com> (raw)

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
   <right>
   <down>  ;;; 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 <down> moves the cursor to the last line:

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx       ; last line of the window,
line number N

And then <right> 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 <down> 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.





             reply	other threads:[~2011-03-21  3:04 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-21  3:04 Juanma Barranquero [this message]
2011-03-21 17:31 ` bug#8307: Scrolling problems in lexbind-new branch Stefan Monnier
2011-03-21 23:41   ` Juanma Barranquero
2011-03-22 19:15     ` Eli Zaretskii
2011-03-22 19:48       ` Juanma Barranquero
2011-03-22 19:59         ` Eli Zaretskii
2011-03-22 20:09           ` Juanma Barranquero
2011-03-25 23:39       ` Juanma Barranquero
2011-03-26  7:49         ` Eli Zaretskii
2011-03-26  9:41           ` Juanma Barranquero

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='AANLkTinq56EyvWrkYdctvQWqZHa_3RtGT=_VSH=9w9JC@mail.gmail.com' \
    --to=lekktu@gmail.com \
    --cc=8307@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).