unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#8307: Scrolling problems in lexbind-new branch
@ 2011-03-21  3:04 Juanma Barranquero
  2011-03-21 17:31 ` Stefan Monnier
  0 siblings, 1 reply; 10+ messages in thread
From: Juanma Barranquero @ 2011-03-21  3:04 UTC (permalink / raw)
  To: 8307

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.





^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2011-03-26  9:41 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-21  3:04 bug#8307: Scrolling problems in lexbind-new branch Juanma Barranquero
2011-03-21 17:31 ` 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

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).