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: Wed, 26 Mar 2003 19:26:42 +0100 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <3E81F0E2.4050107@swipnet.se> References: <20030325193739.ZGIN3924.fep01-svc.swip.net@gaffa.gaia.swipnet.se> <200303251955.h2PJtkL0019666@rum.cs.yale.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1048703543 6955 80.91.224.249 (26 Mar 2003 18:32:23 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 26 Mar 2003 18:32:23 +0000 (UTC) Cc: =?ISO-8859-1?Q?Kai_Gro=DFjohann?= Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Wed Mar 26 19:32:22 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 18yFgt-0001lY-00 for ; Wed, 26 Mar 2003 19:31:59 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18yFiO-0004iZ-00 for ; Wed, 26 Mar 2003 19:33:32 +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 18yFee-00086O-01 for emacs-devel@quimby.gnus.org; Wed, 26 Mar 2003 13:29:40 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18yFdc-00078W-00 for emacs-devel@gnu.org; Wed, 26 Mar 2003 13:28:36 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18yFca-0006IQ-00 for emacs-devel@gnu.org; Wed, 26 Mar 2003 13:27:33 -0500 Original-Received: from stubby.bodenonline.com ([193.201.16.94]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18yFbq-0005qk-00 for emacs-devel@gnu.org; Wed, 26 Mar 2003 13:26:47 -0500 Original-Received: from swipnet.se (accessno42.bodenonline.com [193.201.16.44]) h2QJIrbL004188; Wed, 26 Mar 2003 20:18:55 +0100 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030314 X-Accept-Language: en-us, en Original-To: Stefan Monnier In-Reply-To: <200303251955.h2PJtkL0019666@rum.cs.yale.edu> Original-cc: emacs-devel@gnu.org 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:12640 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:12640 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.