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 thumbs Date: Mon, 02 Nov 2009 20:21:38 +0900 Message-ID: References: Reply-To: Miles Bader NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1257160935 30504 80.91.229.12 (2 Nov 2009 11:22:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 2 Nov 2009 11:22:15 +0000 (UTC) Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org To: "grischka" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 02 12:22:07 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 1N4uz6-0001lW-Tu for ged-emacs-devel@m.gmane.org; Mon, 02 Nov 2009 12:22:05 +0100 Original-Received: from localhost ([127.0.0.1]:49326 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N4uz6-0002tE-3C for ged-emacs-devel@m.gmane.org; Mon, 02 Nov 2009 06:22:04 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N4uyx-0002s6-F1 for emacs-devel@gnu.org; Mon, 02 Nov 2009 06:21:55 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N4uys-0002m9-IQ for emacs-devel@gnu.org; Mon, 02 Nov 2009 06:21:54 -0500 Original-Received: from [199.232.76.173] (port=46918 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N4uys-0002m0-CV for emacs-devel@gnu.org; Mon, 02 Nov 2009 06:21:50 -0500 Original-Received: from tyo201.gate.nec.co.jp ([202.32.8.193]:63055) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1N4uyo-0001of-3y; Mon, 02 Nov 2009 06:21:46 -0500 Original-Received: from relay21.aps.necel.com ([10.29.19.50]) by tyo201.gate.nec.co.jp (8.13.8/8.13.4) with ESMTP id nA2BLPPh026875; Mon, 2 Nov 2009 20:21:39 +0900 (JST) Original-Received: from relay21.aps.necel.com ([10.29.19.24] [10.29.19.24]) by relay21.aps.necel.com with ESMTP; Mon, 2 Nov 2009 20:21:39 +0900 Original-Received: from dhlpc061 ([10.114.114.32] [10.114.114.32]) by relay21.aps.necel.com with ESMTP; Mon, 2 Nov 2009 20:21:39 +0900 Original-Received: by dhlpc061 (Postfix, from userid 31295) id F27E752E1FC; Mon, 2 Nov 2009 20:21:38 +0900 (JST) System-Type: x86_64-unknown-linux-gnu Blat: Foop In-Reply-To: (grischka's message of "Mon, 2 Nov 2009 11:41:58 +0100") Original-Lines: 20 X-detected-operating-system: by monty-python.gnu.org: Solaris 8 (1) 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:116573 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... -Miles -- Consult, v.i. To seek another's disapproval of a course already decided on.