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: Thu, 27 Mar 2003 11:30:01 -0500 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200303271630.h2RGU1bT028651@rum.cs.yale.edu> References: <20030325193739.ZGIN3924.fep01-svc.swip.net@gaffa.gaia.swipnet.se> <1048780121.14517.22.camel@localhost.localdomain> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1048783121 3893 80.91.224.249 (27 Mar 2003 16:38:41 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 27 Mar 2003 16:38:41 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Thu Mar 27 17:38:35 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 18yaOh-00010I-00 for ; Thu, 27 Mar 2003 17:38:35 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18yaQe-0000gz-00 for ; Thu, 27 Mar 2003 17:40:36 +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 18yaL2-00039U-06 for emacs-devel@quimby.gnus.org; Thu, 27 Mar 2003 11:34:48 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18yaKi-00036l-00 for emacs-devel@gnu.org; Thu, 27 Mar 2003 11:34:28 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18yaH1-0001rA-00 for emacs-devel@gnu.org; Thu, 27 Mar 2003 11:30:42 -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 18yaGV-0001L6-00; Thu, 27 Mar 2003 11:30:07 -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 h2RGU1Pe028653; Thu, 27 Mar 2003 11:30:01 -0500 Original-Received: (from monnier@localhost) by rum.cs.yale.edu (8.12.8/8.12.8/Submit) id h2RGU1bT028651; Thu, 27 Mar 2003 11:30:01 -0500 X-Mailer: exmh version 2.4 06/23/2000 with nmh-1.0.4 Original-To: Owen Taylor Original-cc: rms@gnu.org Original-cc: "Jan D." Original-cc: jody@gnome.org Original-cc: kai.grossjohann@uni-duisburg.de 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:12660 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:12660 > * I've always found the emacs behavior with respect to the end of the > buffer quite confusing personally... I think it would be far > less confusing if the region that was scrolled was actually > confined to the lines of the buffer (or maybe lines in buffer + 1) Less confusing but pretty damn hard. I'll implement it as soon as you provide me with a moderately efficient function F that maps from top-of-the-scrollbar-position (in % of the scrollbar size) to window-start-position (in characters) such that F(100%) ensures that (point-max) is visible. Of course, if the last char of the buffer is a large image, the behavior will be quite different from the case where the last 100KB of the buffer are invisible. Which is where the "moderately efficient" constraint becomes relevant. > (Emacs-21.2 with Xaw3d seems to be just buggy ... if the user drags > the thumb of the scrollbar past the end of the buffer it shrinks > to a smaller size and doesn't come back.) Could you describe the bug more precisely. I don't expect the behavior to be perfect, but "doesn't come back" sounds serious (unless you're just talking about the size of the thumb: it only decreases while you drag to avoid nasty "meta-stable" flicker, so the size will only be reset to the proper value when the drag is over). Stefan