emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Gtk scrollbar: thumb too short


From: Jan D.
Subject: Re: Gtk scrollbar: thumb too short
Date: Wed, 26 Mar 2003 19:26:42 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030314

Stefan Monnier wrote:

The advantages of being able to scroll so that the last line can be moved
to the top can be questioned though.  It is not something other applications
do.  Usually when the the last line is visible the thumb is at the bottom
and you can not scroll so that the last line is moved to the top.
But there is explicit code in Emacs for this behaviour so I figured
that it had been decided some time ago.  It should perhaps be a
settable customization?


Actually, this is also difficult to do.  What is the window-start
position that ensures that point-max is visible ?  The only
safe choice is when window-start == point-max.

When Emacs tells the different scroll bar implementations to adjust the thumb, it gives the size of the buffer (whole), the position of the top line (position) displayed, and the amount displayed in the window (portion). All this in characters. So one can figure out if the bottom is visible.

        Jan D.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]