From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: gerd.moellmann@t-online.de (Gerd Moellmann) Newsgroups: gmane.emacs.devel Subject: Re: scroll-bar-toolkit-scroll Date: 29 Jul 2002 12:51:26 +0200 Sender: emacs-devel-admin@gnu.org Message-ID: <863cu2kdsh.fsf@gerd.free-bsd.org> References: <200207290112.g6T1Cvb12938@aztec.santafe.edu> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1027940018 22880 127.0.0.1 (29 Jul 2002 10:53:38 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 29 Jul 2002 10:53:38 +0000 (UTC) Cc: emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17Z89g-0005wu-00 for ; Mon, 29 Jul 2002 12:53:36 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17Z8Qs-0001R7-00 for ; Mon, 29 Jul 2002 13:11:22 +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 17Z89W-000598-00; Mon, 29 Jul 2002 06:53:26 -0400 Original-Received: from mailout04.sul.t-online.com ([194.25.134.18]) by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian)) id 17Z88L-00055o-00; Mon, 29 Jul 2002 06:52:14 -0400 Original-Received: from fwd00.sul.t-online.de by mailout04.sul.t-online.com with smtp id 17Z88H-0002Y5-04; Mon, 29 Jul 2002 12:52:09 +0200 Original-Received: from gerd.free-bsd.org (520015515780-0001@[217.230.96.63]) by fwd00.sul.t-online.com with esmtp id 17Z88A-1NuxQuC; Mon, 29 Jul 2002 12:52:02 +0200 Original-Received: from gerd.free-bsd.org (localhost [127.0.0.1]) by gerd.free-bsd.org (8.12.5/8.12.5) with ESMTP id g6TAq11Q004956; Mon, 29 Jul 2002 12:52:01 +0200 (CEST) (envelope-from gerd.moellmann@t-online.de) Original-Received: (from gerd@localhost) by gerd.free-bsd.org (8.12.5/8.12.5/Submit) id g6TApQYj004953; Mon, 29 Jul 2002 12:51:26 +0200 (CEST) X-Authentication-Warning: gerd.free-bsd.org: gerd set sender to gerd.moellmann@t-online.de using -f Original-To: rms@gnu.org In-Reply-To: <200207290112.g6T1Cvb12938@aztec.santafe.edu> Original-Lines: 26 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 X-Sender: 520015515780-0001@t-dialin.net 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:6134 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:6134 Richard Stallman writes: > scroll-bar-toolkit-scroll has no doc string; it needs one. More > importantly, I am concerned about what it does. It is not > compatible with the non-toolkit scroll commands. What model > was it designed to be compatible with? None. > I also wonder if it is being triggered at the proper time. > Is it supposed to let you drag the handle? To do that properly, > it has to be activated on the down event, but that does not seem > to be the case. I can't really understand the comment in keyboard.c > around line 5188; maybe it says that Emacs does not get a down event, > or maybe only that Emacs can't distinguish down from up. Which is it? Scroll bar widgets work different from Emacs' scroll bars. One registers a callback function with the widget that is invoked when actions happen on the scroll bar, for instance when the scroll bar handle is dragged, when a scroll bar arrow is clicked etc. The widget does the translation of user actions to scroll bar actions, depending on its capabilities and specified user translations (I mean the normal X way of customizing X widgets). The scroll bar actions received by the callback function are converted to certain "widget events" that are handled in Lisp.