From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: scroll-bar-toolkit-scroll Date: Thu, 1 Aug 2002 10:51:49 -0600 (MDT) Sender: emacs-devel-admin@gnu.org Message-ID: <200208011651.g71GpnT18694@aztec.santafe.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> Reply-To: rms@gnu.org NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1028220735 13453 127.0.0.1 (1 Aug 2002 16:52:15 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 1 Aug 2002 16:52:15 +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 17aJBO-0003Us-00 for ; Thu, 01 Aug 2002 18:52:14 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17aJTj-0003RI-00 for ; Thu, 01 Aug 2002 19:11:12 +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 17aJBH-0002J5-00; Thu, 01 Aug 2002 12:52:07 -0400 Original-Received: from pele.santafe.edu ([192.12.12.119]) by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian)) id 17aJB1-0002Ew-00; Thu, 01 Aug 2002 12:51:52 -0400 Original-Received: from aztec.santafe.edu (aztec [192.12.12.49]) by pele.santafe.edu (8.11.6+Sun/8.11.6) with ESMTP id g71Gq1518788; Thu, 1 Aug 2002 10:52:01 -0600 (MDT) Original-Received: (from rms@localhost) by aztec.santafe.edu (8.10.2+Sun/8.9.3) id g71GpnT18694; Thu, 1 Aug 2002 10:51:49 -0600 (MDT) X-Authentication-Warning: aztec.santafe.edu: rms set sender to rms@aztec using -f Original-To: gerd.moellmann@t-online.de In-Reply-To: <86d6t4glcx.fsf@gerd.free-bsd.org> (gerd.moellmann@t-online.de) 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:6225 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:6225 As I read the man page, XmCR_DRAG is received while the user is dragging the slider for "each incremental change of position", so it would be neither up nor down event. Stefan, is that correct? It sounds like the event produced by XmCR_DRAG ought to scroll the buffer based on the new position and redisplay--is that right? I've used x_send_scroll_bar_event to "translate" the invocation of the scroll bar callback to an X event that is handled in XTread_socket like other events. This seemed to be the easiest way to orderly produce a scroll bar input event in the kdb queue because I saw no way to predict when the callback is called (asynchronously). Why not just insert the desired event into the Emacs event queue? That can be done at any time, asynchronously.