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: 02 Aug 2002 12:19:38 +0200 Sender: emacs-devel-admin@gnu.org Message-ID: <86it2t7ebp.fsf@gerd.free-bsd.org> 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> <200208011651.g71GpnT18694@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 1028283633 25082 127.0.0.1 (2 Aug 2002 10:20:33 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 2 Aug 2002 10:20:33 +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 17aZXs-0006WR-00 for ; Fri, 02 Aug 2002 12:20:32 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17aZqz-00034t-00 for ; Fri, 02 Aug 2002 12:40:18 +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 17aZYN-0006Ta-00; Fri, 02 Aug 2002 06:21:03 -0400 Original-Received: from mailout07.sul.t-online.com ([194.25.134.83]) by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian)) id 17aZXm-0006N0-00; Fri, 02 Aug 2002 06:20:26 -0400 Original-Received: from fwd05.sul.t-online.de by mailout07.sul.t-online.com with smtp id 17aZXk-0002jA-00; Fri, 02 Aug 2002 12:20:24 +0200 Original-Received: from gerd.free-bsd.org (520015515780-0001@[217.230.96.168]) by fwd05.sul.t-online.com with esmtp id 17aZXW-1XozdwC; Fri, 2 Aug 2002 12:20:10 +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 g72AK8YG000353; Fri, 2 Aug 2002 12:20:08 +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 g72AJcP0000347; Fri, 2 Aug 2002 12:19:38 +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: <200208011651.g71GpnT18694@aztec.santafe.edu> Original-Lines: 19 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:6244 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:6244 Richard Stallman writes: > 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. I think it's easier the way it is, where there's only one place where input events are stored to the queue. For example, should the callback be invoked from XTread_socket, in the course of an event that's dispatched from XTread_socket to the scroll bar widget, XTread_socket's local variable numchars had to be decremented if the callback itself pushed something on the queue.