From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Reitter Newsgroups: gmane.emacs.devel Subject: Re: Toolkit scroll bar emulation in Carbon Emacs Date: Fri, 6 May 2005 21:41:54 +0100 Message-ID: <6bbf3ad4b03e38a56c653f6b892a6a23@gmail.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v622) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1115412372 19751 80.91.229.2 (6 May 2005 20:46:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 6 May 2005 20:46:12 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri May 06 22:46:07 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DU9hU-0008R5-5s for ged-emacs-devel@m.gmane.org; Fri, 06 May 2005 22:45:32 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DU9pG-0001Yo-4v for ged-emacs-devel@m.gmane.org; Fri, 06 May 2005 16:53:34 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DU9kH-0000rB-3N for emacs-devel@gnu.org; Fri, 06 May 2005 16:48:25 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DU9k3-0000iF-GZ for emacs-devel@gnu.org; Fri, 06 May 2005 16:48:14 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DU9k1-0000at-AF for emacs-devel@gnu.org; Fri, 06 May 2005 16:48:09 -0400 Original-Received: from [64.233.184.202] (helo=wproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DU9kM-0006FM-O7 for emacs-devel@gnu.org; Fri, 06 May 2005 16:48:30 -0400 Original-Received: by wproxy.gmail.com with SMTP id 50so1090139wri for ; Fri, 06 May 2005 13:41:58 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:mime-version:content-transfer-encoding:message-id:content-type:to:from:subject:date:x-mailer; b=HGSZqGdfuDV7CwNtXKMUI+2/jqkVViWgmDc+aPf6Tlu6OKMnPE00Zu3lj94Lv0WXTGlNJWQ2j1jVEOTNp1yEZv7xJDebJ3djuHpC6pcyPtNLH6jzKByy6d/04bPmAfOS3oVtIxyGxwew3uutRgXq0tcqs063N29FR5tcVnVPMGs= Original-Received: by 10.54.84.2 with SMTP id h2mr1058876wrb; Fri, 06 May 2005 13:41:58 -0700 (PDT) Original-Received: from ?192.168.1.6? ([82.14.85.167]) by mx.gmail.com with ESMTP id 65sm1109909wra.2005.05.06.13.41.57; Fri, 06 May 2005 13:41:58 -0700 (PDT) Original-To: emacs-devel@gnu.org X-Mailer: Apple Mail (2.622) 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:36776 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:36776 YAMAMOTO Mitsuharu writes: > With the attached patch, Carbon Emacs generates Lisp-level events as > it were using X toolkit scroll bars. So the scroll bar handlers at > the Lisp level can be used as they are. Now auto-repeat works, and > changing the pressed part (e.g., pressing the up arrow and then moving > to the down arrow without releasing the mouse button) also works. Thank you very very much for working on this. So I've tried out your patch and I have to say, I'm impressed. The new behavior is pretty much perfect. I even find the overscrolling behavior and the resizing of the scrollbar at the end of a buffer very tolerable - it's not resizing erratically, and most importantly, it doesn't jump when you grab the scrollbar. I can confirm, the screen updates lag behind a bit on my 2002 Powerbook. There is no method to not display the point in the visible area? I'd like to scroll somewhere else in the buffer (and I do that quite often) and then jump back, and I know a lot of other people are used to that, too. Such a setting would, of course, preserve the region when scrolling.