1

In this great Emacs-fu post on scrolling in Emacs, my very question is mentioned but never solved. Here's a quote:

Note that on X, when the cursor (point) reaches the end of the document, the slider on the scroll bar may not be at the bottom; I understand this is because of some disagreement between Emacs and the toolkit (GTK+ in this case).

PS: GTK+ is the default Emacs toolkit under Ubuntu.

The problem I'm having is that the slider of the scrollbar does not go to the bottom when the cursor reaches the bottom of the document. If I drag the slider down to the bottom, it scrolls the document until only the very last line of the document is visible at the top of the buffer.

Is there a way to maybe adjust the range of the scrollbar (or other solutions), so that when I reach the bottom of the document by using the keyboard, the scrollbar slider too reached the bottom of the scrollbar?

Alan Turing
  • 12,223
  • 16
  • 74
  • 116

1 Answers1

1

Other solution: turn off the scrollbar as suggested here.

Thomas
  • 71
  • 1
  • Lol, that's always a possibility. But as the page highlights the scrollbar is a good way to see where in the file you are. That's what I use it for, NOT for navigation. – Alan Turing Mar 31 '11 at 19:12
  • @Lex Fridman If figuring out where in the file the point is (you are), consider using `M-x count-lines-page` normally bound to `C-x l`. Besides, the modeline shows Bot to indicate that you are at the bottom of the file even if scroll-bar does not indicate with 100% accuracy as you say. – vpit3833 Mar 31 '11 at 21:47
  • @Lex,vpit: I just wanted to point out that the blog post I linked in my answer actually discusses that point. – Thomas Apr 02 '11 at 12:40