From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Stefan Monnier" Newsgroups: gmane.emacs.devel Subject: Re: Gtk scrollbar: thumb too short Date: Wed, 26 Mar 2003 14:07:51 -0500 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200303261907.h2QJ7pmI024114@rum.cs.yale.edu> References: <20030325193739.ZGIN3924.fep01-svc.swip.net@gaffa.gaia.swipnet.se> <3E81F0E2.4050107@swipnet.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1048705997 21870 80.91.224.249 (26 Mar 2003 19:13:17 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 26 Mar 2003 19:13:17 +0000 (UTC) Cc: Stefan Monnier Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Wed Mar 26 20:13:14 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 18yGKo-0005ga-00 for ; Wed, 26 Mar 2003 20:13:14 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18yGML-00057f-00 for ; Wed, 26 Mar 2003 20:14:49 +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 18yGJb-0002Qh-03 for emacs-devel@quimby.gnus.org; Wed, 26 Mar 2003 14:11:59 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18yGIz-000264-00 for emacs-devel@gnu.org; Wed, 26 Mar 2003 14:11:21 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18yGFo-0000jH-00 for emacs-devel@gnu.org; Wed, 26 Mar 2003 14:08:06 -0500 Original-Received: from rum.cs.yale.edu ([128.36.229.169]) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.10.13) id 18yGFc-0000XS-00 for emacs-devel@gnu.org; Wed, 26 Mar 2003 14:07:52 -0500 Original-Received: from rum.cs.yale.edu (localhost [127.0.0.1]) by rum.cs.yale.edu (8.12.8/8.12.8) with ESMTP id h2QJ7pPe024116; Wed, 26 Mar 2003 14:07:51 -0500 Original-Received: (from monnier@localhost) by rum.cs.yale.edu (8.12.8/8.12.8/Submit) id h2QJ7pmI024114; Wed, 26 Mar 2003 14:07:51 -0500 X-Mailer: exmh version 2.4 06/23/2000 with nmh-1.0.4 Original-To: "Jan D." Original-cc: =?ISO-8859-1?Q?Kai_Gro=DFjohann?= 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:12643 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:12643 > 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. But the potion is not constant and cannot be determined without first rendering the relevant part of the buffer. Stefan