From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: Scrollbar bug on OS X (was: Aquamacs distro for OS X like behavior) Date: Thu, 7 Apr 2005 07:07:07 +0900 Message-ID: References: <7ca1709813602da58a139cee58fb4c63@gmail.com> <3b9c4e2f33d37fed55f640dcafbc8d65@gmail.com> <87is31i8jq.fsf-monnier+emacs@gnu.org> <0ba853825b580f74347416c2c0b4a169@gmail.com> <87vf70ausz.fsf-monnier+emacs@gnu.org> <5b72982df8c370d3a58358de397046c8@gmail.com> Reply-To: snogglethorpe@gmail.com, miles@gnu.org NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1112825540 26166 80.91.229.2 (6 Apr 2005 22:12:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 6 Apr 2005 22:12:20 +0000 (UTC) Cc: Stefan Monnier , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Apr 07 00:12:09 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DJIg7-0007zN-T2 for ged-emacs-devel@m.gmane.org; Thu, 07 Apr 2005 00:07:16 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DJIFI-00015j-DW for ged-emacs-devel@m.gmane.org; Wed, 06 Apr 2005 17:39:32 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DJIEy-0000x4-2G for emacs-devel@gnu.org; Wed, 06 Apr 2005 17:39:13 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DJIEx-0000ws-Tx for emacs-devel@gnu.org; Wed, 06 Apr 2005 17:39:11 -0400 Original-Received: from [64.233.184.200] (helo=wproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DJIgX-0003Sp-4C for emacs-devel@gnu.org; Wed, 06 Apr 2005 18:07:41 -0400 Original-Received: by wproxy.gmail.com with SMTP id 40so390930wri for ; Wed, 06 Apr 2005 15:07:10 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=mhvbPYbdwZyDRIGeqoiIkVQQuP/Teir39+IBheS9VJB76hbZJTuR6Z/kJzQCAeS2YUJFAT7ypY/l2/zajxL2gpNtSzGyzBICIOoq17I5Yc7wFqOq/kHNPupJwjlbcau9gsxHTDj0n6LMcjy70Sb5cCWOJ41wJry6VckoOzkc8h0= Original-Received: by 10.54.20.77 with SMTP id 77mr6481wrt; Wed, 06 Apr 2005 15:07:08 -0700 (PDT) Original-Received: by 10.54.19.32 with HTTP; Wed, 6 Apr 2005 15:07:07 -0700 (PDT) Original-To: David Reitter In-Reply-To: <5b72982df8c370d3a58358de397046c8@gmail.com> X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:35655 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:35655 On Apr 6, 2005 11:32 PM, David Reitter wrote: > that I'd like to implement in order to conform to standards in my > environment, the vertical slider size shows a proportion of _ displayed > lines_ not document characters or real lines (those that end with a CR > or LF). Whether that is better or not, I don't know, but what I do know > is that a) "less visual change on the screen is more", and that b) both > Windows and Mac software has sliders with a stable size. The only way I can see to truly have stable scroll-bar size is to base the size calculation on displayed pixels (lines are not necessarily a constant height, so the number of displayed lines is not a fixed proportion of total lines in the document). I'm curious how _any_ program manages to do this calculation in a reasonable amount of time; do they really lay-out the _entire_ document ahead of time? Do they use some sort of heuristic instead? What happens when the heuristic fails? -MIles -- Do not taunt Happy Fun Ball.