From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Andrew Choi Newsgroups: gmane.emacs.bugs Subject: Re: Emacs does not scroll on Mac OS X Date: Mon, 01 Sep 2003 09:45:26 -0600 Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1062512051 20108 80.91.224.253 (2 Sep 2003 14:14:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 2 Sep 2003 14:14:11 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Sep 02 16:14:07 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19uBv5-0006by-00 for ; Tue, 02 Sep 2003 16:14:07 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.22) id 19u7MW-0001kS-0U for geb-bug-gnu-emacs@m.gmane.org; Tue, 02 Sep 2003 05:22:08 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22) id 19trHv-0008SX-0r for bug-gnu-emacs@gnu.org; Mon, 01 Sep 2003 12:12:19 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22) id 19tqy6-0002ae-K3 for bug-gnu-emacs@gnu.org; Mon, 01 Sep 2003 11:51:51 -0400 Original-Received: from [24.71.223.10] (helo=pd6mo2so.prod.shaw.ca) by monty-python.gnu.org with esmtp (Exim 4.22) id 19tqtN-0001DI-Dl for bug-gnu-emacs@gnu.org; Mon, 01 Sep 2003 11:46:57 -0400 Original-Received: from pd2mr2so.prod.shaw.ca (pd2mr2so-ser.prod.shaw.ca [10.0.141.109]) by l-daemon (iPlanet Messaging Server 5.2 HotFix 1.16 (built May 14 2003)) with ESMTP id <0HKJ00F8CL3S5F@l-daemon> for bug-gnu-emacs@gnu.org; Mon, 01 Sep 2003 09:45:28 -0600 (MDT) Original-Received: from pn2ml9so.prod.shaw.ca (pn2ml9so-qfe0.prod.shaw.ca [10.0.121.7]) by l-daemon (iPlanet Messaging Server 5.2 HotFix 1.16 (built May 14 2003)) with ESMTP id <0HKJ00F1CL3SY9@l-daemon> for bug-gnu-emacs@gnu.org; Mon, 01 Sep 2003 09:45:28 -0600 (MDT) Original-Received: from owlbear.local.shawmail (h68-144-207-94.cg.shawcable.net [68.144.207.94]) by l-daemon (iPlanet Messaging Server 5.2 HotFix 1.16 (built May 14 2003)) with ESMTP id <0HKJ00ARCL3RQY@l-daemon> for bug-gnu-emacs@gnu.org; Mon, 01 Sep 2003 09:45:28 -0600 (MDT) In-reply-to: Original-To: =?iso-8859-1?q?Michael_T=FCxen?= User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 Original-Lines: 38 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:5711 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:5711 Michael T=FCxen writes: > I'm using Emacs on Mac OS X (built from the CVS). After loading a > long file I can scroll through the file by clicking on the slider and > moving it. But clicking on the little arrows on the right lower edge > and holding the mouse down does not scroll through the doc. It > displays only vertical-scroll-bar down-mouse-1 and when I stop holding > it down mouse-1 is appended. >=20 > Is this expected behaviour or a bug? It is a bug now. It was an attempt to auto-repeat mouse events in the scroll bar, which used to work. Perhaps it's better to do without the auto-repeat: (defun mac-handle-scroll-bar-event (event) "Handle scroll bar EVENT on Mac OS." (interactive "e") (let* ((position (event-start event)) (window (nth 0 position)) (bar-part (nth 4 position))) (select-window window) (cond ((eq bar-part 'up) (read-event) ; discard mouse-1 (scroll-down 1)) ((eq bar-part 'above-handle) (read-event) (scroll-down)) ((eq bar-part 'handle) (read-event) (scroll-bar-drag event)) ((eq bar-part 'below-handle) (read-event) (scroll-up)) ((eq bar-part 'down) (read-event) (scroll-up 1)))))