From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Jan D." Newsgroups: gmane.emacs.devel Subject: Re: Emacs GTK scroll-bar flickering Date: Wed, 19 Mar 2003 07:05:01 +0100 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <3E77A0D3.4010509@ihs.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v482) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1048054026 4707 80.91.224.249 (19 Mar 2003 06:07:06 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 19 Mar 2003 06:07:06 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Wed Mar 19 07:07:04 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 18vWjA-0001Dj-00 for ; Wed, 19 Mar 2003 07:07:04 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18vWjn-00060M-00 for ; Wed, 19 Mar 2003 07:07:43 +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 18vWi7-0002uE-08 for emacs-devel@quimby.gnus.org; Wed, 19 Mar 2003 01:05:59 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18vWhn-0002sQ-00 for emacs-devel@gnu.org; Wed, 19 Mar 2003 01:05:39 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18vWhj-0002rQ-00 for emacs-devel@gnu.org; Wed, 19 Mar 2003 01:05:38 -0500 Original-Received: from stubby.bodenonline.com ([193.201.16.94]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18vWhj-0002r8-00 for emacs-devel@gnu.org; Wed, 19 Mar 2003 01:05:35 -0500 Original-Received: from accessno42.bodenonline.com (IDENT:root@accessno42.bodenonline.com [193.201.16.44]) h2J6w0bL029067; Wed, 19 Mar 2003 07:58:01 +0100 Original-To: Kevin Rodgers In-Reply-To: <3E77A0D3.4010509@ihs.com> X-Mailer: Apple Mail (2.482) 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:12455 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:12455 >> When lines aren't available, Emacs uses characters instead. But >> every character added or deleted changes the thumb because the ratio >> between total number characters in the file and the number of characters >> shown changes. Thus, Emacs updates the thumb a lot more than a >> line based application. When the scroll bar is bad at updating >> for small changes like this, flicker occurs. > > What does that mean, "when lines aren't available"? It means that the code that updates the scroll bar does not have that information. > Since scrolling is about vertical display, the only thing that counts is > the > number of lines of text (or the number of pixels, in case of variable > height > fonts and/or images). The number of characters is irrelevant. Yes, but this is not the way Emacs works. It does not keep track of the number of lines in a buffer unless you tell it to (line-number-mode). Jan D.