From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Stefan Monnier" Newsgroups: gmane.emacs.devel Subject: Re: scroll-bar-toolkit-scroll Date: Fri, 09 Aug 2002 03:12:56 -0400 Sender: emacs-devel-admin@gnu.org Message-ID: <200208090712.g797CwY11593@rum.cs.yale.edu> References: <200207290112.g6T1Cvb12938@aztec.santafe.edu> <863cu2kdsh.fsf@gerd.free-bsd.org> <200207300059.g6U0xsw14569@aztec.santafe.edu> <864reh8tqr.fsf@gerd.free-bsd.org> <200207310554.g6V5slG16493@aztec.santafe.edu> <86d6t4glcx.fsf@gerd.free-bsd.org> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1028877233 15957 127.0.0.1 (9 Aug 2002 07:13:53 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 9 Aug 2002 07:13:53 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17d3y4-00049G-00 for ; Fri, 09 Aug 2002 09:13:52 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17d4KX-00065O-00 for ; Fri, 09 Aug 2002 09:37:05 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian)) id 17d3yH-00062K-00; Fri, 09 Aug 2002 03:14:05 -0400 Original-Received: from rum.cs.yale.edu ([128.36.229.169]) by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian)) id 17d3xF-0005tT-00; Fri, 09 Aug 2002 03:13:01 -0400 Original-Received: (from monnier@localhost) by rum.cs.yale.edu (8.11.6/8.11.6) id g797CwY11593; Fri, 9 Aug 2002 03:12:58 -0400 X-Mailer: exmh version 2.4 06/23/2000 with nmh-1.0.4 Original-To: gerd.moellmann@t-online.de (Gerd Moellmann) Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:6381 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:6381 > > IIRC, the scroll bar callback is invoked with action information only, > > Could you explain what "action information" means? > I meant "user action". In the Motif case, for example the scroll bar > callback in invoked for user action meaning "line down", "page up" etc. Indeed. And the translation from up/down/move X-events into those "user actions" depends on the toolkit and is mostly outside the control of Emacs. In the case of Xaw3d, this translation can be customized by the user via Xresources with something like: *Scrollbar*translations: #override \ : StartScroll(Forward) NotifyScroll(Proportional) \n\ : StartScroll(Continuous) MoveThumb() NotifyThumb() \n\ : StartScroll(Backward) NotifyScroll(Proportional) \n\ : MoveThumb() NotifyThumb() \n\ : EndScroll() Note that just like all those Xresources things, it doesn't always work with all applications, or you sometimes need to explicitly specify the application name because of precedence between overlapping specifications, ... Stefan