From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Jan D." Newsgroups: gmane.emacs.devel Subject: Re: Gtk scrollbar: thumb too short Date: Tue, 25 Mar 2003 19:54:11 +0100 (CET) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <20030325193739.ZGIN3924.fep01-svc.swip.net@gaffa.gaia.swipnet.se> References: <84llz3ijob.fsf@lucy.is.informatik.uni-duisburg.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1048621427 13589 80.91.224.249 (25 Mar 2003 19:43:47 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 25 Mar 2003 19:43:47 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue Mar 25 20:43:44 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18xuJl-0003RV-00 for ; Tue, 25 Mar 2003 20:42:41 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18xuKn-0000Ds-00 for ; Tue, 25 Mar 2003 20:43:45 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18xuHb-0005pq-09 for emacs-devel@quimby.gnus.org; Tue, 25 Mar 2003 14:40:27 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18xuFg-0004x0-00 for emacs-devel@gnu.org; Tue, 25 Mar 2003 14:38:28 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18xuFH-0004h3-00 for emacs-devel@gnu.org; Tue, 25 Mar 2003 14:38:03 -0500 Original-Received: from fep01.swip.net ([130.244.199.129] helo=fep01-svc.swip.net) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18xuEt-0004II-00 for emacs-devel@gnu.org; Tue, 25 Mar 2003 14:37:40 -0500 Original-Received: from gaffa.gaia.swipnet.se ([213.101.3.183]) by fep01-svc.swip.net with ESMTP <20030325193739.ZGIN3924.fep01-svc.swip.net@gaffa.gaia.swipnet.se>; Tue, 25 Mar 2003 20:37:39 +0100 In-Reply-To: <84llz3ijob.fsf@lucy.is.informatik.uni-duisburg.de> =?ISO-8859-1?Q?from_Kai_Gro=DFjohann_at_Mar_25=2C_2003_03=3A51=3A16_pm?= Original-To: =?ISO-8859-1?Q?Kai_Gro=DFjohann?= X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:12608 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:12608 > I understand why the scrollbar thumb is shorter than I think it > should be: to allow for placing the last line of the buffer in the > top line of the window. > > But still, I'm not so happy with the current look of the scrollbar. > It confuses me quite a bit. Is there no way to make the thumb extend > to the bottom of the scrollbar area when end of buffer is visible, and > yet to also allow scrolling further down so that the last line of the > buffer can be moved to the top of the window? Not really. The code in Emacs does not specify the length of the thumb, GTK calculates it. Emacs tells GTK how big the buffer is, how big a page is and where we are in the buffer. When GTK decides that the thumb extends to the bottom it will not emit events for anymore downwards motion with the mouse, only upwards. The current behaviour is the same as for Emacs compiled with Motif. To get the effect you want Emacs would have to write its own scroll bar. The native scroll bar does indeed do what you want. 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? Jan D.