From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: Scrollbar thumbs Date: Tue, 03 Nov 2009 10:27:26 +0100 Organization: Organization?!? Message-ID: <87eiogrm9t.fsf@lola.goethe.zz> References: <03A2EC54153A4BB1AAE5AF2D2E2B7264@editkapc> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1257240498 20409 80.91.229.12 (3 Nov 2009 09:28:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 3 Nov 2009 09:28:18 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 03 10:28:11 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1N5FgQ-0007Os-C7 for ged-emacs-devel@m.gmane.org; Tue, 03 Nov 2009 10:28:11 +0100 Original-Received: from localhost ([127.0.0.1]:35620 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N5FgP-0008J7-PY for ged-emacs-devel@m.gmane.org; Tue, 03 Nov 2009 04:28:09 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N5FgJ-0008HO-EA for emacs-devel@gnu.org; Tue, 03 Nov 2009 04:28:03 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N5FgF-0008FM-1v for emacs-devel@gnu.org; Tue, 03 Nov 2009 04:28:03 -0500 Original-Received: from [199.232.76.173] (port=55630 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N5FgE-0008F6-QB for emacs-devel@gnu.org; Tue, 03 Nov 2009 04:27:58 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:41910) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1N5FgE-0001rm-AH for emacs-devel@gnu.org; Tue, 03 Nov 2009 04:27:58 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.50) id 1N5Fg5-0007IZ-GR for emacs-devel@gnu.org; Tue, 03 Nov 2009 10:27:49 +0100 Original-Received: from p5b2c3fef.dip.t-dialin.net ([91.44.63.239]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 03 Nov 2009 10:27:49 +0100 Original-Received: from dak by p5b2c3fef.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 03 Nov 2009 10:27:49 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 27 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: p5b2c3fef.dip.t-dialin.net X-Face: 2FEFf>]>q>2iw=B6, xrUubRI>pR&Ml9=ao@P@i)L:\urd*t9M~y1^:+Y]'C0~{mAl`oQuAl \!3KEIp?*w`|bL5qr,H)LFO6Q=qx~iH4DN; i"; /yuIsqbLLCh/!U#X[S~(5eZ41to5f%E@'ELIi$t^ Vc\LWP@J5p^rst0+('>Er0=^1{]M9!p?&:\z]|;&=NP3AhB!B_bi^]Pfkw User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) Cancel-Lock: sha1:af8DEaw3l5gyi6h9K/E8hH32fzY= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:116595 Archived-At: "grischka" writes: >>> I guess it is just that these GUI toolkit people usually are trained >>> to deliver good looking and pixel-precise artwork and in consequence >>> might have some difficulties to imagine how it can be "pretty much >>> impossibe" for some editor to know how many lines it is actually >>> displaying (or anyway that such editor would still want to use their >>> scrollbars). >> >> Emacs _does_ know how many lines it's displaying. >> >> What it doesn't know is how many lines are in the entire file, or >> more precisely, the "height" of the entire file as rendered, which >> essentially requires rendering the _entire thing_ (it can't be >> calculated from logical number of lines because it depends on the >> exact characters rendered). That's a pretty nasty requirement for a >> non-toy editor... > > The simple rule is: First do it right, then do it fast. Try to make > it work for small files and then you can still think about how to get > equally good results with larger ones. It is not an option to make Emacs unusable on large files for the sake of the scrollbar idiosyncrasies of some toolkit. -- David Kastrup