From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Stefan Monnier" Newsgroups: gmane.emacs.help Subject: Re: Are Windows-Emacs' scrollbars broken? Date: 12 Apr 2003 14:05:49 -0400 Organization: Yale University Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <5ld6jrpp4y.fsf@rum.cs.yale.edu> References: <445cd6bf.0304100110.360fdd1f@posting.google.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1050171306 20958 80.91.224.249 (12 Apr 2003 18:15:06 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 12 Apr 2003 18:15:06 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Sat Apr 12 20:15:04 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 194PWp-0005Rm-00 for ; Sat, 12 Apr 2003 20:15:04 +0200 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 194PXK-0000HD-00 for gnu-help-gnu-emacs@m.gmane.org; Sat, 12 Apr 2003 14:15:34 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!nntp.cs.ubc.ca!cyclone.bc.net!newsfeed.media.kyoto-u.ac.jp!newsfeed.gol.com!news-hog.berkeley.edu!ucberkeley!news.ycc.yale.edu!rum.cs.yale.edu!rum.cs.yale.edu Original-Newsgroups: gnu.emacs.help Original-Lines: 19 Original-NNTP-Posting-Host: rum.cs.yale.edu User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-Original-NNTP-Posting-Host: rum.cs.yale.edu X-Original-Trace: 12 Apr 2003 14:05:49 -0400, rum.cs.yale.edu Original-Xref: shelby.stanford.edu gnu.emacs.help:111916 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:8416 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:8416 >> It doesn't scroll all the way to the bottom, stopping a couple of >> lines before the end of the buffer. >> And the scrolling text jitters up & down while scrolling. > This is because Emacs sets the scroll-bar thumb size based on the > number of characters, not lines. One reason is that Emacs doesn't > count lines in the buffer unless specifically required to do so by > some command. Changing from char to lines wouldn't solve the problem. You need to change from char to pixels to get something that works. Of course you can also change other things such as the rule for the position/size of the thumb. Stefan PS: Of course the difference between counting lines-vs-pixels is less than for chars-vs-pixels, so it would help in many cases.